summaryrefslogtreecommitdiff
path: root/src/api/endpoints
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-02 07:01:47 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-02 07:01:47 +0900
commit21ebc5e84e82198c3b1757272e50b675a0d24239 (patch)
treefacd9944999cb5fc50f03e3e75e28b076835d864 /src/api/endpoints
parentv3927 (diff)
downloadmisskey-21ebc5e84e82198c3b1757272e50b675a0d24239.tar.gz
misskey-21ebc5e84e82198c3b1757272e50b675a0d24239.tar.bz2
misskey-21ebc5e84e82198c3b1757272e50b675a0d24239.zip
oops
Diffstat (limited to 'src/api/endpoints')
-rw-r--r--src/api/endpoints/i/update.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/endpoints/i/update.ts b/src/api/endpoints/i/update.ts
index fc12665ad6..2a5dce64a8 100644
--- a/src/api/endpoints/i/update.ts
+++ b/src/api/endpoints/i/update.ts
@@ -49,7 +49,7 @@ module.exports = async (params, user, _, isSecure) => new Promise(async (res, re
// Get 'is_bot' parameter
const [isBot, isBotErr] = $(params.is_bot).optional.boolean().$;
if (isBotErr) return rej('invalid is_bot param');
- if (isBot) user.is_bot = isBot;
+ if (isBot != null) user.is_bot = isBot;
await User.update(user._id, {
$set: {