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,