aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2019-07-15 14:20:31 +0700
committerEgor Kislitsyn <egor@kislitsyn.com>2019-07-15 14:20:31 +0700
commitd86a97abfb1ef32fbe76f455e8dce4ec429696b6 (patch)
tree82b25f3d45c6f5463aa6aa722611a5c483f94d12 /lib
parent64a946643e6f9159a8029be8ec9e0b71b04906f3 (diff)
downloadpleroma-d86a97abfb1ef32fbe76f455e8dce4ec429696b6.tar.gz
Add an explanation comment to Publisher.publish/2
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/activity_pub/publisher.ex2
1 files changed, 2 insertions, 0 deletions
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 =