From 6b473e3a5c04dc1c75543d591c1b6f4ce4362801 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 3 May 2019 18:55:24 +0900 Subject: [PATCH] Fix #4840 --- src/models/repositories/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/repositories/user.ts b/src/models/repositories/user.ts index eab3acc8e7..68a742d35f 100644 --- a/src/models/repositories/user.ts +++ b/src/models/repositories/user.ts @@ -127,6 +127,7 @@ export class UserRepository extends Repository { pinnedNotes: Notes.packMany(pins.map(pin => pin.noteId), meId, { detail: true }), + twoFactorEnabled: profile!.twoFactorEnabled, } : {}), ...(opts.detail && meId === user.id ? { @@ -135,7 +136,6 @@ export class UserRepository extends Repository { autoWatch: profile!.autoWatch, alwaysMarkNsfw: profile!.alwaysMarkNsfw, carefulBot: profile!.carefulBot, - twoFactorEnabled: profile!.twoFactorEnabled, hasUnreadMessagingMessage: MessagingMessages.count({ where: { recipientId: user.id,