From 54ea7f5dfeb2ecbad6362b050e234da366906666 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 4 Sep 2016 21:06:04 +0200 Subject: Case-insensitive search by usernames --- app/services/process_mentions_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/services') diff --git a/app/services/process_mentions_service.rb b/app/services/process_mentions_service.rb index aec150a94..288f56be4 100644 --- a/app/services/process_mentions_service.rb +++ b/app/services/process_mentions_service.rb @@ -8,7 +8,7 @@ class ProcessMentionsService < BaseService status.text.scan(Account::MENTION_RE).each do |match| username, domain = match.first.split('@') - mentioned_account = Account.find_by(username: username, domain: domain) + mentioned_account = Account.find_remote(username, domain) if mentioned_account.nil? && !domain.nil? mentioned_account = follow_remote_account_service.("#{match.first}") -- cgit