about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authorpuckipedia <puck@puckipedia.com>2018-01-09 00:47:43 +0100
committerEugen Rochko <eugen@zeonfederated.com>2018-01-09 00:47:43 +0100
commit628358aeea65587c2862b9fab67a9d18cb52ce93 (patch)
tree3d4b5733701a9d22eb2baa10523e61446f6556df /app/lib
parentc235711ffee6999c09bd6910373ebcfbc7758e99 (diff)
Add the author of a status to cc if reblogged (#6226)
This makes slightly more sense, and ensures that the author of a post is always referenced in the audience (which some servers might rely on). And the announce is POSTed to the author's inbox anyways.
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/activitypub/tag_manager.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/lib/activitypub/tag_manager.rb b/app/lib/activitypub/tag_manager.rb
index 0708713e6..fa2a8f7d3 100644
--- a/app/lib/activitypub/tag_manager.rb
+++ b/app/lib/activitypub/tag_manager.rb
@@ -67,6 +67,8 @@ class ActivityPub::TagManager
   def cc(status)
     cc = []
 
+    cc << uri_for(status.reblog.account) if status.reblog?
+
     case status.visibility
     when 'public'
       cc << account_followers_url(status.account)