mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 21:55:52 +02:00
Add TODO to code itself
This commit is contained in:
@@ -121,6 +121,8 @@ export function getProfileUrl(profile: OAuthProfile): string | undefined {
|
||||
|
||||
export function getProfileEmails(profile: OAuthProfile): string[] {
|
||||
if (profile.provider === 'discord') {
|
||||
// TODO: diagnose why we aren't receiving the email from Discord
|
||||
// for now, we just won't attempt to record an email if we don't receive one
|
||||
return profile.email ? [profile.email] : [];
|
||||
} else if (profile.emails && profile.emails.length) {
|
||||
return profile.emails.map(e => e.value);
|
||||
|
||||
Reference in New Issue
Block a user