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

Fix #7637
th-downstream
Eugen Rochko 6 years ago committed by GitHub
parent 8c7ba82dc1
commit 81536e07ab

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

Loading…
Cancel
Save