about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-03-30 13:40:10 +0200
committerClaire <claire.github-309c@sitedethib.com>2022-03-30 13:40:10 +0200
commit51a297e1287a9b2dd3b2d2b19433820e996779db (patch)
treed1bb823de4bff3ee9676835dc3e7614ed66deb65 /app/models
parenteaea849035ea407afb2d5db411dbddc1ccca6f44 (diff)
parent2cc7ba26715c9f3fcc81ee5d30b282b1493a2e0b (diff)
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/models')
-rw-r--r--app/models/account_filter.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/account_filter.rb b/app/models/account_filter.rb
index 9da1522dd..ec309ce09 100644
--- a/app/models/account_filter.rb
+++ b/app/models/account_filter.rb
@@ -80,6 +80,10 @@ class AccountFilter
       accounts_with_users.merge(User.pending)
     when 'suspended'
       Account.suspended
+    when 'disabled'
+      accounts_with_users.merge(User.disabled)
+    when 'silenced'
+      Account.silenced
     else
       raise "Unknown status: #{value}"
     end