about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2018-05-10 21:38:40 +0900
committerEugen Rochko <eugen@zeonfederated.com>2018-05-10 14:38:40 +0200
commitbd5f57cbc377fea9422e6749d4bd8331d69b39e3 (patch)
tree1bbceb34deb40b54180faf0389439be28db4b1d1 /app
parent0a7e8320b22412e8a45545026fafe1be1d6b9051 (diff)
Strip tags from og:description on public tag page (#7437)
Diffstat (limited to 'app')
-rw-r--r--app/views/tags/_og.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/tags/_og.html.haml b/app/views/tags/_og.html.haml
index 853a499ae..a7c289bcb 100644
--- a/app/views/tags/_og.html.haml
+++ b/app/views/tags/_og.html.haml
@@ -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'