about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-10 17:30:49 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-10 17:30:49 +0200
commit38ce960ff91b63044073cfe26bf79dbc360842d6 (patch)
tree5d8b6a14354e4273f08fe8427a8fd7dbf4e622a0 /app
parentcfba03bd277c4be8a32484d28b785a3c4107f808 (diff)
Use Account#find_remote method when possible
Diffstat (limited to 'app')
-rw-r--r--app/services/process_feed_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/process_feed_service.rb b/app/services/process_feed_service.rb
index 5b5800f16..537c1a8ff 100644
--- a/app/services/process_feed_service.rb
+++ b/app/services/process_feed_service.rb
@@ -147,7 +147,7 @@ class ProcessFeedService < BaseService
     username = xml.at_xpath('./activity:object/xmlns:author/xmlns:name').content
     url      = xml.at_xpath('./activity:object/xmlns:author/xmlns:uri').content
     domain   = Addressable::URI.parse(url).host
-    account  = Account.find_by(username: username, domain: domain)
+    account  = Account.find_remote(username, domain)
 
     if account.nil?
       account = follow_remote_account_service.call("#{username}@#{domain}")