Kaynağa Gözat

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

Fix #7637
master
Eugen Rochko 5 yıl önce
committed by GitHub
ebeveyn
işleme
81f96c973a
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: 4AEE18F83AFDEB23
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      app/presenters/instance_presenter.rb

+ 1
- 1
app/presenters/instance_presenter.rb Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet