about summary refs log tree commit diff
path: root/app/presenters
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-11-29 21:47:18 +0100
committerGitHub <noreply@github.com>2018-11-29 21:47:18 +0100
commitb65daa25faab0fbefd367b3cbbe4d32bfd8c5820 (patch)
tree4ec696e3bfd7406b0fbe54f71aed649241663ecf /app/presenters
parent6a264c9379a50cb94afc8dd369bfc5b626a9c4d1 (diff)
parentad7a3974cc48946b5cb8182da4f9e236aa5e39a1 (diff)
Merge pull request #835 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/presenters')
-rw-r--r--app/presenters/instance_presenter.rb2
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