From: Haelwenn (lanodan) Monnier Date: Thu, 27 Sep 2018 09:51:36 +0000 (+0200) Subject: transmogrifier: get_actor called without casting attributedTo in actor and actor... X-Git-Url: http://git.squeep.com/?a=commitdiff_plain;h=c739737998538632f595c03fcedbdb5178ad83b6;p=akkoma transmogrifier: get_actor called without casting attributedTo in actor and actor is nil --- diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index 76998c802..aece77a54 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -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. """