transmogrifier: get_actor called without casting attributedTo in actor and actor is nil

This commit is contained in:
Haelwenn (lanodan) Monnier 2018-09-27 11:51:36 +02:00
parent 9446b02bdf
commit c739737998
No known key found for this signature in database
GPG Key ID: D5B7A8E43C997DEE

View 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.
"""