From a3dcd06a9317c771b2cf99a84e0a7b95f25051ea Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 12 Feb 2016 13:58:44 -0500 Subject: [PATCH] FIX: Emoji in the post gutter weren't being rendered properly --- app/assets/javascripts/discourse/widgets/post-gutter.js.es6 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/widgets/post-gutter.js.es6 b/app/assets/javascripts/discourse/widgets/post-gutter.js.es6 index 514ee4a924f..f79ec5e5c4d 100644 --- a/app/assets/javascripts/discourse/widgets/post-gutter.js.es6 +++ b/app/assets/javascripts/discourse/widgets/post-gutter.js.es6 @@ -1,6 +1,7 @@ import { iconNode } from 'discourse/helpers/fa-icon'; import { createWidget } from 'discourse/widgets/widget'; import { h } from 'virtual-dom'; +import RawHtml from 'discourse/widgets/raw-html'; const MAX_GUTTER_LINKS = 5; @@ -28,7 +29,7 @@ export default createWidget('post-gutter', { let title = l.title; if (title && !seenTitles[title]) { seenTitles[title] = true; - const linkBody = [Discourse.Emoji.unescape(title)]; + const linkBody = [new RawHtml({ html: `${Discourse.Emoji.unescape(title)}` })]; if (l.clicks) { linkBody.push(h('span.badge.badge-notification.clicks', l.clicks.toString())); }