Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop

This commit is contained in:
syuilo
2022-01-21 18:27:37 +09:00
2 changed files with 8 additions and 8 deletions

View File

@@ -98,10 +98,12 @@ export default defineComponent({
}, {
done: result => {
if (!result || result.canceled) return;
let comment = result.result;
let comment = result.result.length == 0 ? null : result.result;
os.api('drive/files/update', {
fileId: file.id,
comment: comment.length == 0 ? null : comment
comment: comment,
}).then(() => {
file.comment = comment;
});
}
}, 'closed');