transmogrifier: get_actor called without casting attributedTo in actor and actor is nil
This commit is contained in:
parent
9446b02bdf
commit
c739737998
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,10 @@ def get_actor(%{"actor" => %{"id" => id}}) when is_bitstring(id) 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.
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue