Browse Source

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

Fix #7637
master
Eugen Rochko 5 years ago
committed by GitHub
parent
commit
81f96c973a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/presenters/instance_presenter.rb

+ 1
- 1
app/presenters/instance_presenter.rb View File

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