Преглед на файлове

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


Зареждане…
Отказ
Запис