test: avatar and header uploading

This commit is contained in:
Mar0xy 2023-10-30 00:27:04 +01:00
parent 8736560e5f
commit b57ec5e2eb
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
3 changed files with 53 additions and 4 deletions

View file

@ -238,6 +238,16 @@ export default class Misskey implements MegalodonInterface {
description: options.note
})
}
if (options.avatar) {
params = Object.assign(params, {
avatarId: options.avatar
})
}
if (options.header) {
params = Object.assign(params, {
bannerId: options.header
})
}
if (options.locked !== undefined) {
params = Object.assign(params, {
isLocked: options.locked.toString() === 'true' ? true : false