Commit 6a69ece4 authored by Karen Konou's avatar Karen Konou
Browse files

Revert existing object check

parent 28d5b40d
Pipeline #8670 passed with stages
in 3 minutes and 15 seconds
......@@ -311,14 +311,8 @@ def delete(%Object{data: %{"id" => id, "actor" => actor}} = object, local \\ tru
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",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment