From d4ef90eae39f8c00be3dd2c6785fe9ece1f055ff Mon Sep 17 00:00:00 2001 From: mayaeh Date: Wed, 13 Mar 2019 21:01:57 +0900 Subject: Fix to limit to discoverable accounts. (#10253) --- app/presenters/instance_presenter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/presenters') 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 -- cgit