logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 6654c3003351e3ee77977a9ff6e161a10b3d5afc
parent: f49339ca9ca2fbc7feca30be217ed2311ebd106a
Author: nullkal <nullkal@users.noreply.github.com>
Date:   Thu, 27 Jul 2017 22:11:59 +0900

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


Diffstat:

Mapp/services/account_search_service.rb2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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