1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-11-16 04:57:05 +01:00

Revert existing object check

This commit is contained in:
Karen Konou 2019-03-07 11:53:15 +01:00
parent 28d5b40d0a
commit 6a69ece437

View File

@ -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",