mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 12:43:15 +02:00
外部サービス連携後のPackedUserがその情報を持つように (#4850)
This commit is contained in:
parent
88e6929e9f
commit
7d64f8abe4
1 changed files with 13 additions and 0 deletions
|
@ -128,6 +128,19 @@ export class UserRepository extends Repository<User> {
|
||||||
detail: true
|
detail: true
|
||||||
}),
|
}),
|
||||||
twoFactorEnabled: profile!.twoFactorEnabled,
|
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 ? {
|
...(opts.detail && meId === user.id ? {
|
||||||
|
|
Loading…
Reference in a new issue