diff --git a/common/user.ts b/common/user.ts index f00dfc89..f89223d2 100644 --- a/common/user.ts +++ b/common/user.ts @@ -12,7 +12,6 @@ export type User = { // For their user page bio?: string - bannerUrl?: string website?: string twitterHandle?: string discordHandle?: string diff --git a/firestore.rules b/firestore.rules index 50f93e1f..9ab575cd 100644 --- a/firestore.rules +++ b/firestore.rules @@ -27,7 +27,7 @@ service cloud.firestore { allow read; allow update: if userId == request.auth.uid && request.resource.data.diff(resource.data).affectedKeys() - .hasOnly(['bio', 'bannerUrl', 'website', 'twitterHandle', 'discordHandle', 'followedCategories', 'lastPingTime','shouldShowWelcome', 'hasSeenContractFollowModal', 'homeSections']); + .hasOnly(['bio', 'website', 'twitterHandle', 'discordHandle', 'followedCategories', 'lastPingTime','shouldShowWelcome', 'hasSeenContractFollowModal', 'homeSections']); // User referral rules allow update: if userId == request.auth.uid && request.resource.data.diff(resource.data).affectedKeys() diff --git a/web/pages/api/v0/_types.ts b/web/pages/api/v0/_types.ts index ccaa217d..788b5ec7 100644 --- a/web/pages/api/v0/_types.ts +++ b/web/pages/api/v0/_types.ts @@ -192,7 +192,6 @@ export type LiteUser = { avatarUrl?: string bio?: string - bannerUrl?: string website?: string twitterHandle?: string discordHandle?: string @@ -223,7 +222,6 @@ export function toLiteUser(user: User): LiteUser { username, avatarUrl, bio, - bannerUrl, website, twitterHandle, discordHandle, @@ -241,7 +239,6 @@ export function toLiteUser(user: User): LiteUser { url: `https://${ENV_CONFIG.domain}/${username}`, avatarUrl, bio, - bannerUrl, website, twitterHandle, discordHandle, diff --git a/web/pages/profile.tsx b/web/pages/profile.tsx index 04878c6c..c3d4335c 100644 --- a/web/pages/profile.tsx +++ b/web/pages/profile.tsx @@ -28,7 +28,7 @@ export const getServerSideProps = redirectIfLoggedOut('/', async (_, creds) => { function EditUserField(props: { user: User - field: 'bio' | 'website' | 'bannerUrl' | 'twitterHandle' | 'discordHandle' + field: 'bio' | 'website' | 'twitterHandle' | 'discordHandle' label: string }) { const { user, field, label } = props