about summary refs log tree commit diff
path: root/app/services/process_mentions_service.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-03-13 16:34:15 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-03-13 16:34:15 +0100
commita5daa806f2e4f824925aa1558202458bd3af7a0a (patch)
tree90aa4f0ca36ceb8c2430c05554219f277f3f062f /app/services/process_mentions_service.rb
parent47bf592db786107f0cdc67b98f55c947acdb5a51 (diff)
Fix casuality of processing remote mentions such that notifications
about them would be processed only after the entire status is processed
Diffstat (limited to 'app/services/process_mentions_service.rb')
-rw-r--r--app/services/process_mentions_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/process_mentions_service.rb b/app/services/process_mentions_service.rb
index d3d3af8af..aa0a4d71b 100644
--- a/app/services/process_mentions_service.rb
+++ b/app/services/process_mentions_service.rb
@@ -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?