Skip to content
Snippets Groups Projects
Commit 6a69ece4 authored by Karen Konou's avatar Karen Konou
Browse files

Revert existing object check

parent 28d5b40d
No related branches found
No related tags found
No related merge requests found
......@@ -311,14 +311,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
user = User.get_cached_by_ap_id(actor)
to =
case Object.get_cached_by_ap_id(id) do
nil ->
[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
object.data["to"] || [] ++ object.data["cc"] ||
[] ++ [user.follower_address, "https://www.w3.org/ns/activitystreams#Public"]
data = %{
"type" => "Delete",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment