small cleanup in quote code

This commit is contained in:
Henry Jameson 2026-08-05 16:31:50 +03:00
commit 60c3dddca3

View file

@ -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