From 15d01a5e08dd13b55d6b67ea26d56894487c09a9 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 6 Oct 2016 16:36:16 +0200 Subject: Better comparison of "local" domain --- app/services/follow_remote_account_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/services/follow_remote_account_service.rb') diff --git a/app/services/follow_remote_account_service.rb b/app/services/follow_remote_account_service.rb index 9fbf17091..3b305504c 100644 --- a/app/services/follow_remote_account_service.rb +++ b/app/services/follow_remote_account_service.rb @@ -7,7 +7,7 @@ class FollowRemoteAccountService < BaseService def call(uri) username, domain = uri.split('@') - return Account.find_local(username) if domain == Rails.configuration.x.local_domain || domain.nil? + return Account.find_local(username) if TagManager.instance.local_domain?(domain) account = Account.find_remote(username, domain) -- cgit