diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-11-29 19:22:52 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-11-29 19:22:52 +0100 |
commit | ad7a3974cc48946b5cb8182da4f9e236aa5e39a1 (patch) | |
tree | 4ec696e3bfd7406b0fbe54f71aed649241663ecf /app/presenters | |
parent | 6a264c9379a50cb94afc8dd369bfc5b626a9c4d1 (diff) | |
parent | fa9f28f52d38b5cf3184d6bc77f5554b74fca348 (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'app/presenters')
-rw-r--r-- | app/presenters/instance_presenter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/presenters/instance_presenter.rb b/app/presenters/instance_presenter.rb index b0756d1f4..d8670f124 100644 --- a/app/presenters/instance_presenter.rb +++ b/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 |