From f7c6f8ac3d294220d842567c5286fbab1c891e74 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Mon, 25 Sep 2023 23:33:45 +0200 Subject: [PATCH] fix: replace boolean function with ? : expressions --- packages/megalodon/src/misskey.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/megalodon/src/misskey.ts b/packages/megalodon/src/misskey.ts index 9d912ccebd..3df5aba351 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) {