Change min. characters required for logged-out account search from 5 to 3 (#36487)

pull/36611/head
Eugen Rochko 1 week ago committed by GitHub
parent e8382c7332
commit 1dead10312
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -6,7 +6,7 @@ class AccountSearchService < BaseService
MENTION_ONLY_RE = /\A#{Account::MENTION_RE}\z/i MENTION_ONLY_RE = /\A#{Account::MENTION_RE}\z/i
# Min. number of characters to look for non-exact matches # Min. number of characters to look for non-exact matches
MIN_QUERY_LENGTH = 5 MIN_QUERY_LENGTH = 3
class QueryBuilder class QueryBuilder
def initialize(query, account, options = {}) def initialize(query, account, options = {})

Loading…
Cancel
Save