mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
FIX: quote reply to new topic doesn't add quote to composer
This commit is contained in:
parent
2d7c3067ba
commit
1e7850fa90
1 changed files with 1 additions and 1 deletions
|
@ -412,7 +412,7 @@ export default Ember.Controller.extend(SelectedPostsCount, BufferedContent, {
|
|||
draftKey: Composer.REPLY_AS_NEW_TOPIC_KEY,
|
||||
categoryId: this.get('category.id')
|
||||
}).then(() => {
|
||||
return Em.isEmpty(quotedText) ? Discourse.Post.loadQuote(post.get('id')) : quotedText;
|
||||
composerController.get('model').appendText(Em.isEmpty(quotedText) ? Discourse.Post.loadQuote(post.get('id')) : quotedText);
|
||||
}).then(q => {
|
||||
const postUrl = `${location.protocol}//${location.host}${post.get('url')}`;
|
||||
const postLink = `[${Handlebars.escapeExpression(self.get('model.title'))}](${postUrl})`;
|
||||
|
|
Loading…
Reference in a new issue