Co-authored-by: Amit Sharma <[email protected]> Co-authored-by: Hariom <[email protected]> Co-authored-by: Syed Ali Shahbaz <[email protected]>
This commit is contained in:
20 files changed
+454
-23
No files matched your search
@@ -219,6 +219,12 @@ async function getUserPageProps(context: GetServerSidePropsContext) {
|
||||
} as const;
|
||||
}
|
||||
|
||||
const allowSEOIndexing = org
|
||||
? user?.profile?.organization?.organizationSettings?.allowSEOIndexing
|
||||
? user?.allowSEOIndexing
|
||||
: false
|
||||
: user?.allowSEOIndexing;
|
||||
|
||||
const props: Props = {
|
||||
eventData: {
|
||||
id: eventData.id,
|
||||
@@ -230,7 +236,7 @@ async function getUserPageProps(context: GetServerSidePropsContext) {
|
||||
slug,
|
||||
trpcState: ssr.dehydrate(),
|
||||
isBrandingHidden: user?.hideBranding,
|
||||
isSEOIndexable: user?.allowSEOIndexing,
|
||||
isSEOIndexable: allowSEOIndexing,
|
||||
themeBasis: username,
|
||||
bookingUid: bookingUid ? `${bookingUid}` : null,
|
||||
rescheduleUid: null,
|
||||
|
||||
@@ -69,6 +69,7 @@ type UserPageProps = {
|
||||
| "currency"
|
||||
| "recurringEvent"
|
||||
>)[];
|
||||
isOrgSEOIndexable: boolean | undefined;
|
||||
} & EmbedProps;
|
||||
|
||||
export const getServerSideProps: GetServerSideProps<UserPageProps> = async (context) => {
|
||||
@@ -194,6 +195,7 @@ export const getServerSideProps: GetServerSideProps<UserPageProps> = async (cont
|
||||
themeBasis: user.username,
|
||||
trpcState: ssr.dehydrate(),
|
||||
markdownStrippedBio,
|
||||
isOrgSEOIndexable: org?.organizationSettings?.allowSEOIndexing,
|
||||
},
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user