summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/models/repositories/user.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/models/repositories/user.ts b/src/models/repositories/user.ts
index 74f2995c5f..0fafd30468 100644
--- a/src/models/repositories/user.ts
+++ b/src/models/repositories/user.ts
@@ -128,6 +128,19 @@ export class UserRepository extends Repository<User> {
detail: true
}),
twoFactorEnabled: profile!.twoFactorEnabled,
+ twitter: profile!.twitter ? {
+ id: profile!.twitterUserId,
+ screenName: profile!.twitterScreenName
+ } : null,
+ github: profile!.github ? {
+ id: profile!.githubId,
+ login: profile!.githubLogin
+ } : null,
+ discord: profile!.discord ? {
+ id: profile!.discordId,
+ username: profile!.discordUsername,
+ discriminator: profile!.discordDiscriminator
+ } : null,
} : {}),
...(opts.detail && meId === user.id ? {