about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-02-05 03:01:23 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-02-05 03:01:23 +0100
commit6cdcac1396e60286284fd8cbfe5c859050c696af (patch)
treef105f4e655819f41cb1b84e306c1d5c08f3831ba /app/services
parent44fad0160f4b390a97fae8bb23cdc98ccf5649d9 (diff)
Fix #598 - arrow keys to navigate media; fix #481 - non-exact matches no longer
overshadow requirement for remote-lookup
Diffstat (limited to 'app/services')
-rw-r--r--app/services/search_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/search_service.rb b/app/services/search_service.rb
index e9a27f136..04de8a134 100644
--- a/app/services/search_service.rb
+++ b/app/services/search_service.rb
@@ -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