about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authoralpaca-tc <alpaca-tc@alpaca.tc>2017-04-19 21:58:27 +0900
committerEugen <eugen@zeonfederated.com>2017-04-19 14:58:27 +0200
commit5ce8a1811abbb304a6cf92616a9db4fb3cac89ee (patch)
treee0ff317abacbdb727cc2cd217f8684a395b61746 /app
parentdca0ffa1a12120eaa563aa0a73b96ddb7ba53be0 (diff)
Replace User.count -> User.confirmed.count (#2127)
Diffstat (limited to 'app')
-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 13c5ece4e..4188650d5 100644
--- a/app/presenters/instance_presenter.rb
+++ b/app/presenters/instance_presenter.rb
@@ -15,7 +15,7 @@ class InstancePresenter
   end
 
   def user_count
-    Rails.cache.fetch('user_count') { User.count }
+    Rails.cache.fetch('user_count') { User.confirmed.count }
   end
 
   def status_count