Commit 34fc0dca authored by rinpatch's avatar rinpatch
Browse files

Merge branch 'hotfix/delete-activities' into 'develop'

Fix delete activities not federating

See merge request !933
parents 59333f2d e630e5e1
Pipeline #8963 passed with stages
in 4 minutes and 29 seconds
......@@ -310,7 +310,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"] || [])
with {:ok, object, activity} <- Object.delete(object),
data <- %{
......
Markdown is supported
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