From: Egor Kislitsyn Date: Mon, 15 Jul 2019 07:20:31 +0000 (+0700) Subject: Add an explanation comment to Publisher.publish/2 X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=d86a97abfb1ef32fbe76f455e8dce4ec429696b6;p=akkoma Add an explanation comment to Publisher.publish/2 --- diff --git a/lib/pleroma/web/activity_pub/publisher.ex b/lib/pleroma/web/activity_pub/publisher.ex index ffdd33351..18145e45f 100644 --- a/lib/pleroma/web/activity_pub/publisher.ex +++ b/lib/pleroma/web/activity_pub/publisher.ex @@ -131,6 +131,8 @@ defmodule Pleroma.Web.ActivityPub.Publisher do %User{ap_id: ap_id} = Enum.find(recipients, fn %{info: %{source_data: data}} -> data["inbox"] == inbox end) + # Get all the recipients on the same host and add them to cc. Otherwise it a remote + # instance would only accept a first message for the first recipient and ignore the rest. cc = get_cc_ap_ids(ap_id, recipients) json =