about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-04 21:06:04 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-04 21:06:04 +0200
commit54ea7f5dfeb2ecbad6362b050e234da366906666 (patch)
tree5568a6faf666092abeff04b83dcba53c448f591d /app/services
parenta82f2e4b824ee09419871d6cbb5284368dd83f24 (diff)
Case-insensitive search by usernames
Diffstat (limited to 'app/services')
-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 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}")