Skip to content
Snippets Groups Projects
Commit d4ef90ea authored by mayaeh's avatar mayaeh Committed by Eugen Rochko
Browse files

Fix to limit to discoverable accounts. (#10253)

parent 0a684056
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment