mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
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 @@ 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.
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue