This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Remove extra spaces from search API queries and public account headers (
fixes
#7129
) (
#7152
)
pull/4/head
ThibG
6 years ago
committed by
Eugen Rochko
parent
1a37d7e252
commit
1c379b7ef4
2 changed files
with
3 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/services/search_service.rb
+2
-2
app/views/accounts/_header.html.haml
+ 1
- 1
app/services/search_service.rb
View File
@ -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
+ 2
- 2
app/views/accounts/_header.html.haml
View File
@ -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
Write
Preview
Loading…
Cancel
Save