fix post status form "eating" posts

This commit is contained in:
Henry Jameson 2026-07-30 14:59:25 +03:00
commit 15c5f9e4eb

View file

@ -690,6 +690,7 @@ const PostStatusForm = {
.then((data) => { .then((data) => {
this.abandonDraft() this.abandonDraft()
this.clearStatus() this.clearStatus()
this.updateIdempotencyKey()
this.$emit('posted', data) this.$emit('posted', data)
}) })
.catch((error) => { .catch((error) => {
@ -1007,6 +1008,7 @@ const PostStatusForm = {
this.saveable = false this.saveable = false
if (!this.shouldAutoSaveDraft) { if (!this.shouldAutoSaveDraft) {
this.clearStatus() this.clearStatus()
this.updateIdempotencyKey()
this.$emit('draft-done') this.$emit('draft-done')
} }
}) })
@ -1016,6 +1018,7 @@ const PostStatusForm = {
this.saveable = false this.saveable = false
if (!this.shouldAutoSaveDraft) { if (!this.shouldAutoSaveDraft) {
this.clearStatus() this.clearStatus()
this.updateIdempotencyKey()
this.$emit('draft-done') this.$emit('draft-done')
} }
}) })