Remove unused InstancePresenter#sample_accounts method (#23900)

lolsob-rspec
Matt Jankowski 2023-02-27 13:03:35 -05:00 committed by GitHub
parent 7e7fa6cb40
commit 1d248c3f57
1 changed files with 0 additions and 4 deletions

View File

@ -74,10 +74,6 @@ class InstancePresenter < ActiveModelSerializers::Model
Rails.cache.fetch('distinct_domain_count') { Instance.count } Rails.cache.fetch('distinct_domain_count') { Instance.count }
end end
def sample_accounts
Rails.cache.fetch('sample_accounts', expires_in: 12.hours) { Account.local.discoverable.popular.limit(3) }
end
def version def version
Mastodon::Version.to_s Mastodon::Version.to_s
end end