diff options
Diffstat (limited to 'src/models/repositories/user.ts')
| -rw-r--r-- | src/models/repositories/user.ts | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/models/repositories/user.ts b/src/models/repositories/user.ts index 3b3ed6b793..25ce00cdc4 100644 --- a/src/models/repositories/user.ts +++ b/src/models/repositories/user.ts @@ -213,19 +213,6 @@ export class UserRepository extends Repository<User> { userId: user.id }).then(result => result >= 1) : false, - 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 ? { @@ -242,6 +229,7 @@ export class UserRepository extends Repository<User> { pendingReceivedFollowRequestsCount: FollowRequests.count({ followeeId: user.id }), + integrations: profile?.integrations, } : {}), ...(opts.includeSecrets ? { |