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

View File

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