mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 03:57:10 +08:00
FIX: Sometimes we hide the in_reply_to
when a quote is present
This commit is contained in:
parent
8ef49a9458
commit
3d8e75c6ca
@ -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…
x
Reference in New Issue
Block a user