about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-02-27 00:15:00 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-02-27 00:15:00 +0100
commit175a9b9caa92ad90bf2e8b68c299a00adb1f9751 (patch)
treeac9ee673567dd8661fce0644193377af5818b08e /app/services
parent2826e6dada94da4508ab89f137b456145656d2d9 (diff)
Fix #104 - Style OAuth authorized applications page
Add ability to search accounts by display name
Diffstat (limited to 'app/services')
-rw-r--r--app/services/search_service.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/search_service.rb b/app/services/search_service.rb
index 04de8a134..6f740e149 100644
--- a/app/services/search_service.rb
+++ b/app/services/search_service.rb
@@ -5,6 +5,7 @@ class SearchService < BaseService
     return if query.blank? || query.start_with?('#')
 
     username, domain = query.gsub(/\A@/, '').split('@')
+    domain = nil if TagManager.instance.local_domain?(domain)
 
     if domain.nil?
       exact_match = Account.find_local(username)