From 60c3dddca3316cd0897fe08a42e07dc5a5a482ef Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 5 Aug 2026 16:31:50 +0300 Subject: [PATCH] small cleanup in quote code --- src/components/post_status_form/post_status_form.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index dacca5b3c..ec61832de 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -378,8 +378,8 @@ const PostStatusForm = { set(value) { if (value) { this.newStatus.quote = {} - this.newStatus.quote.thread = value - this.newStatus.quote.id = value ? this.repliedStatus.id : '' + this.newStatus.quote.thread = true + this.newStatus.quote.id = this.repliedStatus.id } else { this.newStatus.quote = null } @@ -959,6 +959,7 @@ const PostStatusForm = { // Quote toggleQuoteForm() { // This is for the "attach quote" button + if (this.newStatus.quote?.thread) return if (!this.hasQuote) { this.newStatus.quote = {} this.newStatus.quote.thread = false