Removed unused values, functions in InstancePresenter

• Removed:
- unused values, functions in InstancePresenter
This commit is contained in:
mgabdev 2021-01-15 15:04:44 -05:00
parent 2a83400d84
commit a703b5cb78
1 changed files with 0 additions and 9 deletions

View File

@ -2,17 +2,12 @@
class InstancePresenter class InstancePresenter
delegate( delegate(
:site_contact_email,
:site_title, :site_title,
:site_short_description, :site_short_description,
:site_description, :site_description,
to: Setting to: Setting
) )
def sample_accounts
Rails.cache.fetch('sample_accounts', expires_in: 12.hours) { Account.discoverable.popular.limit(3) }
end
def version_number def version_number
GabSocial::Version GabSocial::Version
end end
@ -21,8 +16,4 @@ class InstancePresenter
GabSocial::Version.source_url GabSocial::Version.source_url
end end
def thumbnail
@thumbnail ||= Rails.cache.fetch('site_uploads/thumbnail') { SiteUpload.find_by(var: 'thumbnail') }
end
end end