Fix delete activities not federating

This commit is contained in:
rinpatch 2019-03-14 20:43:14 +03:00
parent 8e6b850610
commit e630e5e135

View file

@ -309,7 +309,7 @@ def unfollow(follower, followed, activity_id \\ nil, local \\ true) do
def delete(%Object{data: %{"id" => id, "actor" => actor}} = object, local \\ true) do
user = User.get_cached_by_ap_id(actor)
to = object.data["to"] || [] ++ object.data["cc"] || []
to = (object.data["to"] || []) ++ (object.data["cc"] || [])
data = %{
"type" => "Delete",