1
0
Fork 0
forked from fedi/mastodon

Fix to limit to discoverable accounts. ()

This commit is contained in:
mayaeh 2019-03-13 21:01:57 +09:00 committed by Eugen Rochko
parent 0a6840564a
commit d4ef90eae3

View file

@ -34,7 +34,7 @@ class InstancePresenter
end end
def sample_accounts 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 end
def version_number def version_number