Skip to content
Snippets Groups Projects
Commit 6654c300 authored by nullkal's avatar nullkal Committed by Eugen Rochko
Browse files

Fix an error when a user tries to search nonexistent remote user (regression from #4275) (#4400)

parent f49339ca
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment