diff options
author | nullkal <nullkal@users.noreply.github.com> | 2017-07-27 22:11:59 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-07-27 15:11:59 +0200 |
commit | 6654c3003351e3ee77977a9ff6e161a10b3d5afc (patch) | |
tree | c601f2891eb1ac582d43e6fe4456053717c27d2d /app/services | |
parent | f49339ca9ca2fbc7feca30be217ed2311ebd106a (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.rb | 2 |
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 |