diff --git a/src/client/components/page/page.post.vue b/src/client/components/page/page.post.vue index 81269a4f1..80e0f70cb 100644 --- a/src/client/components/page/page.post.vue +++ b/src/client/components/page/page.post.vue @@ -75,7 +75,7 @@ export default Vue.extend({ this.posting = true; const file = this.value.attachCanvasImage ? await this.upload() : null; this.$root.api('notes/create', { - text: this.text, + text: this.text === '' ? null : this.text, fileIds: file ? [file.id] : undefined, }).then(() => { this.posted = true;