瀏覽代碼

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

Fix #7637
master
Eugen Rochko 5 年之前
committed by GitHub
父節點
當前提交
81f96c973a
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      app/presenters/instance_presenter.rb

+ 1
- 1
app/presenters/instance_presenter.rb 查看文件

@@ -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…
取消
儲存