Commit 1c379b7e authored by ThibG's avatar ThibG Committed by Eugen Rochko

Remove extra spaces from search API queries and public account headers (fixes #7129) (#7152)

parent 1a37d7e2
......@@ -4,7 +4,7 @@ class SearchService < BaseService
attr_accessor :query, :account, :limit, :resolve
def call(query, limit, resolve = false, account = nil)
@query = query
@query = query.strip
@account = account
@limit = limit
@resolve = resolve
......
......@@ -6,8 +6,8 @@
.card__bio
%h1.name
%span.p-name.emojify= display_name(account)
%small
%span @#{account.local_username_and_domain}
%small<
%span>< @#{account.local_username_and_domain}
= fa_icon('lock') if account.locked?
- if Setting.show_staff_badge
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment