From 7d64f8abe4c4b56d30eb3a0ac9ad6267fc469332 Mon Sep 17 00:00:00 2001 From: Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com> Date: Sun, 5 May 2019 09:28:55 +0900 Subject: [PATCH] =?UTF-8?q?=E5=A4=96=E9=83=A8=E3=82=B5=E3=83=BC=E3=83=93?= =?UTF-8?q?=E3=82=B9=E9=80=A3=E6=90=BA=E5=BE=8C=E3=81=AEPackedUser?= =?UTF-8?q?=E3=81=8C=E3=81=9D=E3=81=AE=E6=83=85=E5=A0=B1=E3=82=92=E6=8C=81?= =?UTF-8?q?=E3=81=A4=E3=82=88=E3=81=86=E3=81=AB=20(#4850)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/repositories/user.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 { 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 ? {