diff --git a/src/models/repositories/user.ts b/src/models/repositories/user.ts index 9e11b2aa8..3d2a0f31f 100644 --- a/src/models/repositories/user.ts +++ b/src/models/repositories/user.ts @@ -154,6 +154,12 @@ export class UserRepository extends Repository { }), } : {}), + ...(opts.includeSecrets ? { + clientData: profile.clientData, + email: profile.email, + emailVerified: profile.emailVerified, + } : {}), + ...(relation ? { isFollowing: relation.isFollowing, isFollowed: relation.isFollowed,