]> cat aescling's git repositories - mastodon.git/commitdiff
Strip tags from og:description on public tag page (#7437)
authorYamagishi Kazutoshi <ykzts@desire.sh>
Thu, 10 May 2018 12:38:40 +0000 (21:38 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 10 May 2018 12:38:40 +0000 (14:38 +0200)
app/views/tags/_og.html.haml

index 853a499aeac7483c937d2dc87d8679fa22474733..a7c289bcb001ac1adc5ba0858e8c1e7871826927 100644 (file)
@@ -2,5 +2,5 @@
 = opengraph 'og:url', tag_url(@tag)
 = opengraph 'og:type', 'website'
 = opengraph 'og:title', "##{@tag.name}"
-= opengraph 'og:description', t('about.about_hashtag_html', hashtag: @tag.name)
+= opengraph 'og:description', strip_tags(t('about.about_hashtag_html', hashtag: @tag.name))
 = opengraph 'twitter:card', 'summary'