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

Fix #7637
Ten commit jest zawarty w:
Eugen Rochko 2018-11-27 18:49:37 +01:00 zatwierdzone przez GitHub
rodzic 43c311b3a1
commit 81f96c973a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23

Wyświetl plik

@ -18,7 +18,7 @@ class InstancePresenter
end end
def user_count 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 end
def status_count def status_count