Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Remove unused InstancePresenter#sample_accounts method (mastodon#23900)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski authored Feb 27, 2023
1 parent 9ee83a9 commit 055ed5a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/presenters/instance_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ def domain_count
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
Expand Down

0 comments on commit 055ed5a

Please sign in to comment.