mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
This commit is contained in:
parent
f49339ca9c
commit
6654c30033
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class AccountSearchService < BaseService
|
||||||
return [] if query_blank_or_hashtag? || limit < 1
|
return [] if query_blank_or_hashtag? || limit < 1
|
||||||
|
|
||||||
if resolving_non_matching_remote_account?
|
if resolving_non_matching_remote_account?
|
||||||
[ResolveRemoteAccountService.new.call("#{query_username}@#{query_domain}")]
|
[ResolveRemoteAccountService.new.call("#{query_username}@#{query_domain}")].compact
|
||||||
else
|
else
|
||||||
search_results_and_exact_match.compact.uniq.slice(0, limit)
|
search_results_and_exact_match.compact.uniq.slice(0, limit)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue