transmogrifier: get_actor called without casting attributedTo in actor and actor...
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Thu, 27 Sep 2018 09:51:36 +0000 (11:51 +0200)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Thu, 27 Sep 2018 18:00:48 +0000 (20:00 +0200)
lib/pleroma/web/activity_pub/transmogrifier.ex

index 76998c802014942f7d2bcef4420ac62af3e845c0..aece77a5401fbe71177e1a2c584ee00163aefeba 100644 (file)
@@ -30,6 +30,10 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
     id
   end
 
+  def get_actor(%{"actor" => nil, "attributedTo" => actor}) when not is_nil(actor) do
+    get_actor(%{"actor" => actor})
+  end
+
   @doc """
   Checks that an imported AP object's actor matches the domain it came from.
   """