about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorHeitor de Melo Cardozo <heitor711n@gmail.com>2023-04-17 09:16:36 -0300
committerGitHub <noreply@github.com>2023-04-17 14:16:36 +0200
commitbc75e62ca6e16d3dad43fd35ccca335de547cfb3 (patch)
treee156d5585a38d753fa793fe5afb63172b8090ec3 /app/models
parentab740f464a8e5aa6b5f78c0ddab3c8e18698d810 (diff)
Change moderation search an account using the username with @ (#24242)
Diffstat (limited to 'app/models')
-rw-r--r--app/models/account_filter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/account_filter.rb b/app/models/account_filter.rb
index 1666ea883..55d34e85c 100644
--- a/app/models/account_filter.rb
+++ b/app/models/account_filter.rb
@@ -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'