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

Fix #7637
This commit is contained in:
Eugen Rochko 2018-11-27 18:49:37 +01:00
parent cc0c1674f0
commit 58108b4481

View file

@ -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