Skip to content
Snippets Groups Projects
Unverified Commit 81f96c97 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

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

Fix #7637
parent 43c311b3
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment