From 3c39269be8347270b13fcf6a6cf82cc35c5b1cfa Mon Sep 17 00:00:00 2001 From: tusooa Date: Sun, 12 Mar 2023 15:19:48 -0400 Subject: [PATCH] Save only if status has something to save --- src/components/post_status_form/post_status_form.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index c809e2f8..5f274b55 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -672,7 +672,11 @@ const PostStatusForm = { return propsToNative(props) }, saveDraft () { - if (!this.saveInhibited) { + if (!this.saveInhibited && + (this.newStatus.status || + this.newStatus.files?.length || + this.newStatus.hasPoll + )) { this.$store.dispatch('addOrSaveDraft', { draft: this.newStatus }) .then(id => { if (this.newStatus.id !== id) {