mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 04:31:43 +08:00
FIX: Unescape emojis in composer topic title.
This commit is contained in:
parent
b596b4f930
commit
b26368709e
|
@ -5,6 +5,7 @@ import Quote from 'discourse/lib/quote';
|
||||||
import Draft from 'discourse/models/draft';
|
import Draft from 'discourse/models/draft';
|
||||||
import computed from 'ember-addons/ember-computed-decorators';
|
import computed from 'ember-addons/ember-computed-decorators';
|
||||||
import { escapeExpression, tinyAvatar } from 'discourse/lib/utilities';
|
import { escapeExpression, tinyAvatar } from 'discourse/lib/utilities';
|
||||||
|
import { emojiUnescape } from 'discourse/lib/text';
|
||||||
|
|
||||||
const CLOSED = 'closed',
|
const CLOSED = 'closed',
|
||||||
SAVING = 'saving',
|
SAVING = 'saving',
|
||||||
|
@ -174,7 +175,7 @@ const Composer = RestModel.extend({
|
||||||
case REPLY:
|
case REPLY:
|
||||||
case EDIT:
|
case EDIT:
|
||||||
if (postDescription) return postDescription;
|
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'),
|
}.property('action', 'post', 'topic', 'topic.title'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user