소스 검색

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

Fix #7637
master
Eugen Rochko 5 년 전
committed by GitHub
부모
커밋
81f96c973a
No known key found for this signature in database GPG 키 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


불러오는 중...
취소
저장