From 8cefcaa55f86e03f3965c5cb419787778681c269 Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Sun, 19 Apr 2020 17:40:46 +0900
Subject: [PATCH] fix(client): Fix bug that cannot post when image only

---
 src/client/components/page/page.post.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/client/components/page/page.post.vue b/src/client/components/page/page.post.vue
index 81269a4f14..80e0f70cb2 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;