FIX: Unescape emojis in composer topic title.

This commit is contained in:
Guo Xiang Tan 2016-11-04 16:53:13 +08:00
parent b596b4f930
commit b26368709e
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import Quote from 'discourse/lib/quote';
import Draft from 'discourse/models/draft';
import computed from 'ember-addons/ember-computed-decorators';
import { escapeExpression, tinyAvatar } from 'discourse/lib/utilities';
import { emojiUnescape } from 'discourse/lib/text';
const CLOSED = 'closed',
SAVING = 'saving',
@ -174,7 +175,7 @@ const Composer = RestModel.extend({
case REPLY:
case EDIT:
if (postDescription) return postDescription;
if (topic) return I18n.t('post.reply_topic', { link: topicLink });
if (topic) return emojiUnescape(I18n.t('post.reply_topic', { link: topicLink }));
}
}.property('action', 'post', 'topic', 'topic.title'),