mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-09 17:55:11 +00:00
Revert existing object check
This commit is contained in:
parent
28d5b40d0a
commit
6a69ece437
|
@ -311,14 +311,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
||||||
user = User.get_cached_by_ap_id(actor)
|
user = User.get_cached_by_ap_id(actor)
|
||||||
|
|
||||||
to =
|
to =
|
||||||
case Object.get_cached_by_ap_id(id) do
|
object.data["to"] || [] ++ object.data["cc"] ||
|
||||||
nil ->
|
[] ++ [user.follower_address, "https://www.w3.org/ns/activitystreams#Public"]
|
||||||
[user.follower_address, "https://www.w3.org/ns/activitystreams#Public"]
|
|
||||||
|
|
||||||
object ->
|
|
||||||
object.data["to"] || [] ++ object.data["cc"] ||
|
|
||||||
[] ++ [user.follower_address, "https://www.w3.org/ns/activitystreams#Public"]
|
|
||||||
end
|
|
||||||
|
|
||||||
data = %{
|
data = %{
|
||||||
"type" => "Delete",
|
"type" => "Delete",
|
||||||
|
|
Loading…
Reference in a new issue