mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 08:15:00 +00:00
we should use fancy title if available
This commit is contained in:
parent
be8dd403df
commit
7a4e825671
@ -169,7 +169,10 @@ const Composer = RestModel.extend({
|
||||
const postNumber = this.get('post.post_number');
|
||||
postLink = "<a href='" + (topic.get('url')) + "/" + postNumber + "'>" +
|
||||
I18n.t("post.post_number", { number: postNumber }) + "</a>";
|
||||
topicLink = "<a href='" + (topic.get('url')) + "'> " + escapeExpression(topic.get('title')) + "</a>";
|
||||
|
||||
let title = topic.get('fancy_title') || escapeExpression(topic.get('title'));
|
||||
|
||||
topicLink = "<a href='" + (topic.get('url')) + "'> " + title + "</a>";
|
||||
usernameLink = "<a href='" + (topic.get('url')) + "/" + postNumber + "'>" + this.get('post.username') + "</a>";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user