From 29996a7e8b5bde15d3409f3f19820afa13dd1e33 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 4 Sep 2016 21:07:29 +0200 Subject: [PATCH] Fix wrongful mentions breaking status update --- app/services/process_mentions_service.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/services/process_mentions_service.rb b/app/services/process_mentions_service.rb index 288f56be40..fb605326d5 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