]> cat aescling's git repositories - mastodon.git/commitdiff
Fix to limit to discoverable accounts. (#10253)
authormayaeh <mayaeh@marimo-net.org>
Wed, 13 Mar 2019 12:01:57 +0000 (21:01 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 13 Mar 2019 12:01:57 +0000 (13:01 +0100)
app/presenters/instance_presenter.rb

index 7d7bae7ede428cc2ffffad98b255121d2739afa5..cb6005e2153b197b4ffe400ccfddbf1320432e23 100644 (file)
@@ -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