1
0

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
3 changed files with 8 additions and 4 deletions
+5
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)