about summary refs log tree commit diff
path: root/app/services/follow_remote_account_service.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-04 21:15:52 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-04 21:15:52 +0200
commit35dfc0fbcb725d45facc74af615fd96b9581d978 (patch)
treee35b0954231c9fa566a1b192033956ec66ea15b5 /app/services/follow_remote_account_service.rb
parent29996a7e8b5bde15d3409f3f19820afa13dd1e33 (diff)
Fixed more case-sensitivity issues
Diffstat (limited to 'app/services/follow_remote_account_service.rb')
-rw-r--r--app/services/follow_remote_account_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/follow_remote_account_service.rb b/app/services/follow_remote_account_service.rb
index 01e07e2e9..f05668420 100644
--- a/app/services/follow_remote_account_service.rb
+++ b/app/services/follow_remote_account_service.rb
@@ -10,7 +10,7 @@ class FollowRemoteAccountService < BaseService
 
     return Account.find_local(username) if domain == Rails.configuration.x.local_domain
 
-    account = Account.find_by(username: username, domain: domain)
+    account = Account.find_remote(username, domain)
 
     if account.nil?
       account = Account.new(username: username, domain: domain)