Fix not send limited visibilities
This commit is contained in:
parent
fc35348dfa
commit
f6284c190b
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue