mirror of
https://github.com/misskey-dev/misskey
synced 2024-12-03 01:09:06 +09:00
fix(client): Fix bug that cannot post when image only
This commit is contained in:
parent
164c6505f2
commit
8cefcaa55f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user