diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-04-19 17:40:46 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-04-19 17:40:46 +0900 |
| commit | 8cefcaa55f86e03f3965c5cb419787778681c269 (patch) | |
| tree | bdbdc7353e9d3b333f14d304f82bf7c71aa21fb5 /src/client/components | |
| parent | enhance(client): Use icon instead of text (diff) | |
| download | misskey-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.vue | 2 |
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; |