about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-04 21:07:29 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-04 21:07:29 +0200
commit29996a7e8b5bde15d3409f3f19820afa13dd1e33 (patch)
treecd7746308d0965b9b16dd46eda15b64132ae162c
parent54ea7f5dfeb2ecbad6362b050e234da366906666 (diff)
Fix wrongful mentions breaking status update
-rw-r--r--app/services/process_mentions_service.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/process_mentions_service.rb b/app/services/process_mentions_service.rb
index 288f56be4..fb605326d 100644
--- a/app/services/process_mentions_service.rb
+++ b/app/services/process_mentions_service.rb
@@ -12,9 +12,10 @@ class ProcessMentionsService < BaseService
 
       if mentioned_account.nil? && !domain.nil?
         mentioned_account = follow_remote_account_service.("#{match.first}")
-        next if mentioned_account.nil?
       end
 
+      next if mentioned_account.nil?
+
       mentioned_account.mentions.where(status: status).first_or_create(status: status)
     end