]> cat aescling's git repositories - mastodon.git/commitdiff
fix presented og:url is incorrect (#5320)
authortakayamaki <fsgiko@gmail.com>
Wed, 11 Oct 2017 17:22:21 +0000 (02:22 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 11 Oct 2017 17:22:21 +0000 (19:22 +0200)
app/views/shared/_og.html.haml

index dbd476915b967cf4bfa21490941ba9514151c49c..a6d805bea22ab334b5570868ad8c8d681d5a9859 100644 (file)
@@ -1,6 +1,6 @@
 - thumbnail = @instance_presenter.thumbnail
 = opengraph 'og:site_name', t('about.hosted_on', domain: site_hostname)
-= opengraph 'og:url', about_url
+= 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'))