0
0
Fork 0

Fix casuality of processing remote mentions such that notifications

about them would be processed only after the entire status is processed
This commit is contained in:
Eugen Rochko 2017-03-13 16:34:15 +01:00
parent 47bf592db7
commit a5daa806f2
2 changed files with 16 additions and 6 deletions

View file

@ -27,7 +27,7 @@ class ProcessMentionsService < BaseService
mentioned_account.mentions.where(status: status).first_or_create(status: status)
end
status.mentions.each do |mention|
status.mentions.includes(:account).each do |mention|
mentioned_account = mention.account
if mentioned_account.local?