about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2017-04-17 17:19:45 -0400
committerEugen <eugen@zeonfederated.com>2017-04-17 23:19:45 +0200
commitf96f8d017660fa1e1ffcd436bd3b1d2e3c01491c (patch)
tree91563b74639b8b72ecc9ac3e8aee2b6e3ac6ce3e
parenta05e7582e4b4f7116e8f18e6bd08dff29d1001c6 (diff)
Use .presence instead of ternary on site description for og: content (#2033)
-rw-r--r--app/views/about/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/about/show.html.haml b/app/views/about/show.html.haml
index 39686b531..60627ab98 100644
--- a/app/views/about/show.html.haml
+++ b/app/views/about/show.html.haml
@@ -8,7 +8,7 @@
   %meta{ property: 'og:site_name', content: site_title }/
   %meta{ property: 'og:type', content: 'website' }/
   %meta{ property: 'og:title', content: Rails.configuration.x.local_domain }/
-  %meta{ property: 'og:description', content: strip_tags(@instance_presenter.site_description.blank? ? t('about.about_mastodon') : @instance_presenter.site_description) }/
+  %meta{ property: 'og:description', content: strip_tags(@instance_presenter.site_description.presence || t('about.about_mastodon')) }/
   %meta{ property: 'og:image', content: asset_url('mastodon_small.jpg') }/
   %meta{ property: 'og:image:width', content: '400' }/
   %meta{ property: 'og:image:height', content: '400' }/