From 6654c3003351e3ee77977a9ff6e161a10b3d5afc Mon Sep 17 00:00:00 2001 From: nullkal Date: Thu, 27 Jul 2017 22:11:59 +0900 Subject: Fix an error when a user tries to search nonexistent remote user (regression from #4275) (#4400) --- app/services/account_search_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/services') diff --git a/app/services/account_search_service.rb b/app/services/account_search_service.rb index c266494f0..b0c663d02 100644 --- a/app/services/account_search_service.rb +++ b/app/services/account_search_service.rb @@ -18,7 +18,7 @@ class AccountSearchService < BaseService return [] if query_blank_or_hashtag? || limit < 1 if resolving_non_matching_remote_account? - [ResolveRemoteAccountService.new.call("#{query_username}@#{query_domain}")] + [ResolveRemoteAccountService.new.call("#{query_username}@#{query_domain}")].compact else search_results_and_exact_match.compact.uniq.slice(0, limit) end -- cgit