about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-21 16:30:09 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-21 16:30:09 -0600
commit0557b9a10162808e984c150f0a5f365ef6607373 (patch)
treea58ff3c3557fa2cf2cb250b6dd83412b617c3c5e /app/lib
parent4cb1d42ba2ffbd31c5e865e55c408363ca35f47a (diff)
do not add public collection to `cc` field in inivisible mode
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/activitypub/tag_manager.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/activitypub/tag_manager.rb b/app/lib/activitypub/tag_manager.rb
index 22e26d116..1e41cbb03 100644
--- a/app/lib/activitypub/tag_manager.rb
+++ b/app/lib/activitypub/tag_manager.rb
@@ -90,7 +90,7 @@ class ActivityPub::TagManager
     when 'public'
       cc << account_followers_url(status.account)
     when 'unlisted', 'local'
-      cc << COLLECTIONS[:public]
+      (cc << COLLECTIONS[:public]) unless status.account.hidden?
     end
 
     unless status.direct_visibility? || status.limited_visibility?