mirror of
https://github.com/whippyshou/mastodon
synced 2024-12-01 08:18:48 +09:00
Remove unused InstancePresenter#sample_accounts method (#23900)
This commit is contained in:
parent
9ee83a9f3b
commit
055ed5a616
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user