about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authornullkal <nullkal@users.noreply.github.com>2017-07-27 22:11:59 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-07-27 15:11:59 +0200
commit6654c3003351e3ee77977a9ff6e161a10b3d5afc (patch)
treec601f2891eb1ac582d43e6fe4456053717c27d2d /app/services
parentf49339ca9ca2fbc7feca30be217ed2311ebd106a (diff)
Fix an error when a user tries to search nonexistent remote user (regression from #4275) (#4400)
Diffstat (limited to 'app/services')
-rw-r--r--app/services/account_search_service.rb2
1 files changed, 1 insertions, 1 deletions
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