fix: adding description not working on media

This commit is contained in:
Mar0xy 2023-09-25 18:46:17 +02:00
parent b070e85566
commit 324cc5509e
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
3 changed files with 8 additions and 4 deletions

View file

@ -1446,6 +1446,11 @@ export default class Misskey implements MegalodonInterface {
isSensitive: options.is_sensitive
})
}
if (options.description !== undefined) {
params = Object.assign(params, {
comment: options.description,
});
}
}
return this.client
.post<MisskeyAPI.Entity.File>('/api/drive/files/update', params)