diff --git a/src/models/user.ts b/src/models/user.ts index 741306fd27..9638d15932 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -359,6 +359,8 @@ export const pack = ( if (!opts.detail) { delete _user.twoFactorEnabled; } + } else { + delete _user.publicKey; } _user.avatarUrl = _user.avatarId != null