]> cat aescling's git repositories - mastodon.git/commitdiff
Add the author of a status to cc if reblogged (#6226)
authorpuckipedia <puck@puckipedia.com>
Mon, 8 Jan 2018 23:47:43 +0000 (00:47 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 8 Jan 2018 23:47:43 +0000 (00:47 +0100)
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.

app/lib/activitypub/tag_manager.rb

index 0708713e646df0971f4cd904a746c8da874c5426..fa2a8f7d31e342c990aa1e4a683c918e720ca3dc 100644 (file)
@@ -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)