|
|
@ -28,7 +28,7 @@ class ProcessMentionsService < BaseService |
|
|
|
status.mentions.each do |mention| |
|
|
|
status.mentions.each do |mention| |
|
|
|
mentioned_account = mention.account |
|
|
|
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? |
|
|
|
if mentioned_account.local? |
|
|
|
NotifyService.new.call(mentioned_account, mention) |
|
|
|
NotifyService.new.call(mentioned_account, mention) |
|
|
|