diff --git a/packages/megalodon/src/misskey.ts b/packages/megalodon/src/misskey.ts index 9d912cceb..3df5aba35 100644 --- a/packages/megalodon/src/misskey.ts +++ b/packages/megalodon/src/misskey.ts @@ -225,7 +225,7 @@ export default class Misskey implements MegalodonInterface { if (options) { if (options.bot !== undefined) { params = Object.assign(params, { - isBot: Boolean(options.bot) + isBot: options.bot.toString() === 'true' ? true : false }) } if (options.display_name) { @@ -240,7 +240,7 @@ export default class Misskey implements MegalodonInterface { } if (options.locked !== undefined) { params = Object.assign(params, { - isLocked: Boolean(options.locked) + isLocked: options.locked.toString() === 'true' ? true : false }) } if (options.source) {