Skip to content

Commit b117a99

Browse files
committed
FIX: escape emojis in topic selection modal
1 parent 875703a commit b117a99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/assets/javascripts/discourse/controllers/composer.js.es6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ export default Ember.Controller.extend({
407407

408408
if (currentTopic) {
409409
buttons.push({
410-
"label": I18n.t("composer.reply_here") + "<br/><div class='topic-title overflow-ellipsis'>" + escapeExpression(currentTopic.get('title')) + "</div>",
410+
"label": I18n.t("composer.reply_here") + "<br/><div class='topic-title overflow-ellipsis'>" + currentTopic.get('fancyTitle') + "</div>",
411411
"class": "btn btn-reply-here",
412412
"callback": function() {
413413
composer.set('topic', currentTopic);
@@ -418,7 +418,7 @@ export default Ember.Controller.extend({
418418
}
419419

420420
buttons.push({
421-
"label": I18n.t("composer.reply_original") + "<br/><div class='topic-title overflow-ellipsis'>" + escapeExpression(this.get('model.topic.title')) + "</div>",
421+
"label": I18n.t("composer.reply_original") + "<br/><div class='topic-title overflow-ellipsis'>" + this.get('model.topic.fancyTitle') + "</div>",
422422
"class": "btn-primary btn-reply-on-original",
423423
"callback": function() {
424424
self.save(true);

0 commit comments

Comments
 (0)