FIX: Emoji in the post gutter weren't being rendered properly

This commit is contained in:
Robin Ward 2016-02-12 13:58:44 -05:00
parent c8f7e4d878
commit a3dcd06a93
1 changed files with 2 additions and 1 deletions

View File

@ -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: `<span>${Discourse.Emoji.unescape(title)}</span>` })];
if (l.clicks) {
linkBody.push(h('span.badge.badge-notification.clicks', l.clicks.toString()));
}