Browse Source

Remove unused InstancePresenter#sample_accounts method (#23900)

closed-social-glitch-2
Matt Jankowski 1 year ago
committed by GitHub
parent
commit
055ed5a616
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      app/presenters/instance_presenter.rb

+ 0
- 4
app/presenters/instance_presenter.rb View File

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

Loading…
Cancel
Save