mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-31 12:28:43 +00:00
Use Pleroma.Object.Containment.get_actor/1 to reliably find the actor of an incoming activity or object
This commit is contained in:
parent
1c394dd18c
commit
27fcc42171
1 changed files with 2 additions and 3 deletions
|
@ -567,9 +567,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubController do
|
|||
|
||||
defp unknown_delete?(%{
|
||||
"type" => "Delete",
|
||||
"actor" => actor
|
||||
}) do
|
||||
case User.get_cached_by_ap_id(actor) do
|
||||
} = data) do
|
||||
case data |> Pleroma.Object.Containment.get_actor() |> User.get_cached_by_ap_id() do
|
||||
%User{} -> false
|
||||
_ -> true
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue