Changeset View
Changeset View
Standalone View
Standalone View
keyserver/src/fetchers/user-fetchers.js
Show First 20 Lines • Show All 241 Lines • ▼ Show 20 Lines | ): Promise<OldLoggedInUserInfo | LoggedInUserInfo> { | ||||
let loggedInUserInfo: LoggedInUserInfo = { | let loggedInUserInfo: LoggedInUserInfo = { | ||||
id, | id, | ||||
username, | username, | ||||
}; | }; | ||||
const shouldIncludeAvatar = hasMinCodeVersion(viewer.platformDetails, 1000); | const shouldIncludeAvatar = hasMinCodeVersion(viewer.platformDetails, 1000); | ||||
if (shouldIncludeAvatar && avatar) { | if (shouldIncludeAvatar && avatar) { | ||||
loggedInUserInfo = { ...loggedInUserInfo, avatar }; | loggedInUserInfo = { ...loggedInUserInfo, avatar: JSON.parse(avatar) }; | ||||
} | } | ||||
const featureGateSettings = !hasMinCodeVersion(viewer.platformDetails, 1000); | const featureGateSettings = !hasMinCodeVersion(viewer.platformDetails, 1000); | ||||
if (featureGateSettings) { | if (featureGateSettings) { | ||||
return loggedInUserInfo; | return loggedInUserInfo; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |