From: rinpatch Date: Thu, 14 Mar 2019 17:43:14 +0000 (+0300) Subject: Fix delete activities not federating X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=e630e5e13543ae9bdf1867495ebbe6b3a2582b38;p=akkoma Fix delete activities not federating --- diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index adb42b9ab..96b774c21 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -309,7 +309,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub 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",