Add separate setting for sidebar text (site_short_description) (#8107)

* Add separate setting for sidebar text (site_short_description)

* Fix tests
This commit is contained in:
Eugen Rochko
2018-07-31 18:59:34 +02:00
committed by GitHub
parent 9ae53ad59e
commit cc56f2230a
9 changed files with 14 additions and 4 deletions

View File

@ -3,7 +3,7 @@
= opengraph 'og:url', url_for(only_path: false)
= opengraph 'og:type', 'website'
= opengraph 'og:title', @instance_presenter.site_title
= opengraph 'og:description', strip_tags(@instance_presenter.site_description.presence || t('about.about_mastodon_html'))
= opengraph 'og:description', strip_tags(@instance_presenter.site_short_description.presence || @instance_presenter.site_description.presence || t('about.about_mastodon_html'))
= opengraph 'og:image', full_asset_url(thumbnail&.file&.url || asset_pack_path('preview.jpg', protocol: :request))
= opengraph 'og:image:width', thumbnail ? thumbnail.meta['width'] : '1200'
= opengraph 'og:image:height', thumbnail ? thumbnail.meta['height'] : '630'