Commit 58108b44 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Don't count suspended users in user count (#9380)

Fix #7637
parent cc0c1674
Showing with 1 addition and 1 deletion
+1 -1
......@@ -18,7 +18,7 @@ class InstancePresenter
end
def user_count
Rails.cache.fetch('user_count') { User.confirmed.count }
Rails.cache.fetch('user_count') { User.confirmed.joins(:account).merge(Account.without_suspended).count }
end
def status_count
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment