0
0
Fork 0

Fix #104 - Style OAuth authorized applications page

Add ability to search accounts by display name
This commit is contained in:
Eugen Rochko 2017-02-27 00:15:00 +01:00
parent 2826e6dada
commit 175a9b9caa
9 changed files with 49 additions and 4 deletions

View file

@ -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)