mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +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
|
id
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def get_actor(%{"actor" => nil, "attributedTo" => actor}) when not is_nil(actor) do
|
||||||
|
get_actor(%{"actor" => actor})
|
||||||
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Checks that an imported AP object's actor matches the domain it came from.
|
Checks that an imported AP object's actor matches the domain it came from.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue