From 7a4e825671bc127f65f494f0ec81c1b2137cab1d Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 15 May 2017 15:45:29 -0400 Subject: [PATCH] we should use fancy title if available --- app/assets/javascripts/discourse/models/composer.js.es6 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/models/composer.js.es6 b/app/assets/javascripts/discourse/models/composer.js.es6 index 197f861bd29..6c9a9709173 100644 --- a/app/assets/javascripts/discourse/models/composer.js.es6 +++ b/app/assets/javascripts/discourse/models/composer.js.es6 @@ -169,7 +169,10 @@ const Composer = RestModel.extend({ const postNumber = this.get('post.post_number'); postLink = "" + I18n.t("post.post_number", { number: postNumber }) + ""; - topicLink = " " + escapeExpression(topic.get('title')) + ""; + + let title = topic.get('fancy_title') || escapeExpression(topic.get('title')); + + topicLink = " " + title + ""; usernameLink = "" + this.get('post.username') + ""; }