summaryrefslogtreecommitdiff
path: root/src/client/components
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-04-19 17:40:46 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-04-19 17:40:46 +0900
commit8cefcaa55f86e03f3965c5cb419787778681c269 (patch)
treebdbdc7353e9d3b333f14d304f82bf7c71aa21fb5 /src/client/components
parentenhance(client): Use icon instead of text (diff)
downloadmisskey-8cefcaa55f86e03f3965c5cb419787778681c269.tar.gz
misskey-8cefcaa55f86e03f3965c5cb419787778681c269.tar.bz2
misskey-8cefcaa55f86e03f3965c5cb419787778681c269.zip
fix(client): Fix bug that cannot post when image only
Diffstat (limited to 'src/client/components')
-rw-r--r--src/client/components/page/page.post.vue2
1 files changed, 1 insertions, 1 deletions
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;