projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64a9466
)
Add an explanation comment to Publisher.publish/2
author
Egor Kislitsyn
<egor@kislitsyn.com>
Mon, 15 Jul 2019 07:20:31 +0000
(14:20 +0700)
committer
Egor Kislitsyn
<egor@kislitsyn.com>
Mon, 15 Jul 2019 07:20:31 +0000
(14:20 +0700)
lib/pleroma/web/activity_pub/publisher.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/activity_pub/publisher.ex
b/lib/pleroma/web/activity_pub/publisher.ex
index ffdd33351510ed2d18d1c9e9b68bef6d4e9c93d4..18145e45f8c0c39e8b47bca8448727bb7a9fdb52 100644
(file)
--- 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 =