mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 18:17:55 +00:00
transmogrifier: get_actor called without casting attributedTo in actor and actor is nil
This commit is contained in:
parent
9446b02bdf
commit
c739737998
|
@ -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