mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 05:57:32 -07:00
fix(client): Fix bug that cannot post when image only
This commit is contained in:
parent
24a83de22d
commit
fd034ba176
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue