Fix local follows, 404 in logs

This commit is contained in:
Eugen Rochko 2016-09-08 02:40:51 +02:00
parent 0f4bc56719
commit 509c18eb13
7 changed files with 28 additions and 11 deletions

View file

@ -8,7 +8,7 @@ class FollowRemoteAccountService < BaseService
def call(uri, subscribe = true)
username, domain = uri.split('@')
return Account.find_local(username) if domain == Rails.configuration.x.local_domain
return Account.find_local(username) if domain == Rails.configuration.x.local_domain || domain.nil?
account = Account.find_remote(username, domain)