about summary refs log tree commit diff
path: root/app/services/account_search_service.rb
diff options
context:
space:
mode:
authorEmelia Smith <ThisIsMissEm@users.noreply.github.com>2018-04-23 21:27:18 +0200
committerEugen Rochko <eugen@zeonfederated.com>2018-04-23 21:27:18 +0200
commit495303d9b86919c72bf1948a714bf8d00b41fa0f (patch)
treeb8bc50013a96a73b63b3bd4e79b242cc4a75f3b6 /app/services/account_search_service.rb
parent53b1d8887325160934dec7557e97a43ce2896264 (diff)
Prevent suspended accounts from appearing in AccountSearchService (#7246)
Diffstat (limited to 'app/services/account_search_service.rb')
-rw-r--r--app/services/account_search_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/account_search_service.rb b/app/services/account_search_service.rb
index 3860a9cbd..7edbd9b47 100644
--- a/app/services/account_search_service.rb
+++ b/app/services/account_search_service.rb
@@ -65,9 +65,9 @@ class AccountSearchService < BaseService
   def exact_match
     @_exact_match ||= begin
       if domain_is_local?
-        search_from.find_local(query_username)
+        search_from.without_suspended.find_local(query_username)
       else
-        search_from.find_remote(query_username, query_domain)
+        search_from.without_suspended.find_remote(query_username, query_domain)
       end
     end
   end