FIX: quote reply to new topic doesn't add quote to composer

This commit is contained in:
Neil Lalonde 2015-12-15 18:08:15 -05:00
parent 2d7c3067ba
commit 1e7850fa90

View file

@ -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})`;