about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/presenters/instance_presenter.rb4
-rw-r--r--app/views/about/more.html.haml2
2 files changed, 5 insertions, 1 deletions
diff --git a/app/presenters/instance_presenter.rb b/app/presenters/instance_presenter.rb
index 5066e3a70..acec02778 100644
--- a/app/presenters/instance_presenter.rb
+++ b/app/presenters/instance_presenter.rb
@@ -65,4 +65,8 @@ class InstancePresenter
   def mascot
     @mascot ||= Rails.cache.fetch('site_uploads/mascot') { SiteUpload.find_by(var: 'mascot') }
   end
+
+  def extended_description
+    site_extended_description.html_safe.presence
+  end
 end
diff --git a/app/views/about/more.html.haml b/app/views/about/more.html.haml
index f02a7906a..54e039519 100644
--- a/app/views/about/more.html.haml
+++ b/app/views/about/more.html.haml
@@ -43,4 +43,4 @@
 
   .column-3
     .box-widget
-      .rich-formatting= @instance_presenter.site_extended_description.html_safe.presence || t('about.extended_description_html')
+      .rich-formatting= @instance_presenter.extended_description || t('about.extended_description_html')