From 48b8320e5ec6971d19b7734e22b0a1518b545f1e Mon Sep 17 00:00:00 2001 From: rinsuki <428rinsuki+git@gmail.com> Date: Mon, 10 Aug 2020 01:32:27 +0900 Subject: [PATCH] Fix #6637 (#6638) * Fix #6637 * fix lint --- src/server/api/endpoints/admin/show-user.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/server/api/endpoints/admin/show-user.ts b/src/server/api/endpoints/admin/show-user.ts index 81a311b725..ea4df141f3 100644 --- a/src/server/api/endpoints/admin/show-user.ts +++ b/src/server/api/endpoints/admin/show-user.ts @@ -35,5 +35,8 @@ export default define(meta, async (ps, me) => { throw new Error('cannot show info of admin'); } - return user; + return { + ...user, + token: user.token != null ? '' : user.token, + }; });