about summary refs log tree commit diff
path: root/app/models/account_filter.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-03-30 15:02:16 +0200
committerGitHub <noreply@github.com>2022-03-30 15:02:16 +0200
commit60f9973f452100475874cd9bd0a8b6ee908bf8e0 (patch)
treed1bb823de4bff3ee9676835dc3e7614ed66deb65 /app/models/account_filter.rb
parenteaea849035ea407afb2d5db411dbddc1ccca6f44 (diff)
parent51a297e1287a9b2dd3b2d2b19433820e996779db (diff)
Merge pull request #1725 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/models/account_filter.rb')
-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