FIX: Sometimes we hide the in_reply_to when a quote is present

This commit is contained in:
Robin Ward 2016-08-30 11:11:16 -04:00
parent 8ef49a9458
commit 3d8e75c6ca

View File

@ -651,6 +651,11 @@ const Composer = RestModel.extend({
return result;
}
// We sometimes want to hide the `reply_to_user` if the post contains a quote
if (result.responseJson && result.responseJson.post && !result.responseJson.post.reply_to_user) {
createdPost.set('reply_to_user', null);
}
if (topic) {
// It's no longer a new post
topic.set('draft_sequence', result.target.draft_sequence);