Skip to content
Snippets Groups Projects
Verified Commit c7397379 authored by Haelwenn's avatar Haelwenn
Browse files

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

parent 9446b02b
Branches emoji-upload
No related tags found
No related merge requests found
......@@ -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.
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment