commit: dee38f7fe4d4599480afa10f4d8f6d4d47c7ac23
parent 2edf5fc9f6e7975c727bfa25b733b5f15953adf2
Author: tusooa <tusooa@kazv.moe>
Date: Sun, 12 Mar 2023 15:19:48 -0400
Save only if status has something to save
Diffstat:
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
@@ -706,7 +706,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) {