From: puckipedia Date: Mon, 8 Jan 2018 23:47:43 +0000 (+0100) Subject: Add the author of a status to cc if reblogged (#6226) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=628358aeea65587c2862b9fab67a9d18cb52ce93;p=mastodon.git 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. --- 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)