Change moderation search an account using the username with @ (#24242)
This commit is contained in:
parent
ab740f464a
commit
bc75e62ca6
2 changed files with 20 additions and 1 deletions
|
@ -55,7 +55,7 @@ class AccountFilter
|
|||
when 'by_domain'
|
||||
Account.where(domain: value.to_s.strip)
|
||||
when 'username'
|
||||
Account.matches_username(value.to_s.strip)
|
||||
Account.matches_username(value.to_s.strip.delete_prefix('@'))
|
||||
when 'display_name'
|
||||
Account.matches_display_name(value.to_s.strip)
|
||||
when 'email'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue