Commit d4ef90ea authored by mayaeh's avatar mayaeh Committed by Eugen Rochko

Fix to limit to discoverable accounts. (#10253)

parent 0a684056
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment