mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-04 11:18:06 -05:00
FIX: Sometimes we hide the in_reply_to
when a quote is present
This commit is contained in:
parent
8ef49a9458
commit
3d8e75c6ca
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue