about summary refs log tree commit diff
diff options
context:
space:
mode:
authormayaeh <mayaeh@marimo-net.org>2019-03-13 21:01:57 +0900
committerEugen Rochko <eugen@zeonfederated.com>2019-03-13 13:01:57 +0100
commitd4ef90eae39f8c00be3dd2c6785fe9ece1f055ff (patch)
tree42cf82972a57f48d1600f594607f9d9a680a0cd5
parent0a6840564a7a788b21a947440c66a6bd4ae4ea68 (diff)
Fix to limit to discoverable accounts. (#10253)
-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 7d7bae7ed..cb6005e21 100644
--- a/app/presenters/instance_presenter.rb
+++ b/app/presenters/instance_presenter.rb
@@ -34,7 +34,7 @@ class InstancePresenter
   end
 
   def sample_accounts
-    Rails.cache.fetch('sample_accounts', expires_in: 12.hours) { Account.local.searchable.joins(:account_stat).popular.limit(3) }
+    Rails.cache.fetch('sample_accounts', expires_in: 12.hours) { Account.discoverable.popular.limit(3) }
   end
 
   def version_number