0
0
Fork 0

Fix #598 - arrow keys to navigate media; fix #481 - non-exact matches no longer

overshadow requirement for remote-lookup
This commit is contained in:
Eugen Rochko 2017-02-05 03:01:23 +01:00
parent 44fad0160f
commit 6cdcac1396
3 changed files with 25 additions and 2 deletions

View file

@ -17,7 +17,7 @@ class SearchService < BaseService
results = results.limit(limit).to_a
results = [exact_match] + results.reject { |a| a.id == exact_match.id } if exact_match
if resolve && results.empty? && !domain.nil?
if resolve && !exact_match && !domain.nil?
results = [FollowRemoteAccountService.new.call("#{username}@#{domain}")]
end