mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
we should use fancy title if available
This commit is contained in:
parent
be8dd403df
commit
7a4e825671
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue