diff --git a/app/lib/activitypub/tag_manager.rb b/app/lib/activitypub/tag_manager.rb index d971b44237..3d334296b2 100644 --- a/app/lib/activitypub/tag_manager.rb +++ b/app/lib/activitypub/tag_manager.rb @@ -100,7 +100,7 @@ class ActivityPub::TagManager [account_followers_url(status.account)] when 'login' [account_followers_url(status.account), 'as:LoginOnly', 'LoginUser'] - when 'direct', 'limited' + when 'direct' if status.account.silenced? # Only notify followers if the account is locally silenced account_ids = status.active_mentions.pluck(:account_id) @@ -118,6 +118,11 @@ class ActivityPub::TagManager result << followers_uri_for(mention.account) if mention.account.group? end.compact end + when 'limited' + status.mentions.each_with_object([]) do |mention, result| + result << uri_for(mention.account) + result << followers_uri_for(mention.account) if mention.account.group? + end.compact end end