0
0
Fork 0

Private posts mentioning non-followers should not notify them, neither locally nor via Salmon

This commit is contained in:
Eugen Rochko 2016-12-22 23:14:24 +01:00
parent 9d42bff285
commit f729cfc881
2 changed files with 3 additions and 0 deletions

View file

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