diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/services/account_search_service.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/services/account_search_service.rb b/app/services/account_search_service.rb index 04b2ed958..2b77ad7c6 100644 --- a/app/services/account_search_service.rb +++ b/app/services/account_search_service.rb @@ -59,7 +59,13 @@ class AccountSearchService < BaseService end def exact_match - @_exact_match ||= Account.find_remote(query_username, query_domain) + @_exact_match ||= begin + if domain_is_local? + Account.find_local(query_username) + else + Account.find_remote(query_username, query_domain) + end + end end def search_results |