From 8c14983e19ddff4303982d4c24a0127830cdb6ea Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Fri, 15 Jan 2021 15:51:38 -0500 Subject: [PATCH] Partial revert a703b5cb7 --- app/presenters/instance_presenter.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/presenters/instance_presenter.rb b/app/presenters/instance_presenter.rb index c42dbcdd..f4ba5cfc 100644 --- a/app/presenters/instance_presenter.rb +++ b/app/presenters/instance_presenter.rb @@ -2,6 +2,7 @@ class InstancePresenter delegate( + :site_contact_email, :site_title, :site_short_description, :site_description, @@ -15,5 +16,9 @@ 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