Fix undesired delivering of private toot to remote accounts that follow author

lolsob-rspec
Eugen Rochko 2017-01-05 03:17:23 +01:00
parent 2de668bcf9
commit 66c5363bae
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class ProcessMentionsService < BaseService
status.mentions.each do |mention|
mentioned_account = mention.account
next if status.private_visibility? && !mentioned_account.following?(status.account)
next if status.private_visibility? && (!mentioned_account.following?(status.account) || !mentioned_account.local?)
if mentioned_account.local?
NotifyService.new.call(mentioned_account, mention)