mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-25 04:45:15 +00:00
upd: use boolean function
This commit is contained in:
parent
a5c1d12ae9
commit
f586bead0f
1 changed files with 2 additions and 2 deletions
|
@ -225,7 +225,7 @@ export default class Misskey implements MegalodonInterface {
|
|||
if (options) {
|
||||
if (options.bot !== undefined) {
|
||||
params = Object.assign(params, {
|
||||
isBot: options.bot.toString() === 'true' ? true : false
|
||||
isBot: Boolean(options.bot)
|
||||
})
|
||||
}
|
||||
if (options.display_name) {
|
||||
|
@ -240,7 +240,7 @@ export default class Misskey implements MegalodonInterface {
|
|||
}
|
||||
if (options.locked !== undefined) {
|
||||
params = Object.assign(params, {
|
||||
isLocked: options.locked
|
||||
isLocked: Boolean(options.locked)
|
||||
})
|
||||
}
|
||||
if (options.source) {
|
||||
|
|
Loading…
Reference in a new issue