diff --git a/src/app/api.schema.d.ts b/src/app/api.schema.d.ts index b5eecde..22472cb 100644 --- a/src/app/api.schema.d.ts +++ b/src/app/api.schema.d.ts @@ -389,7 +389,7 @@ export interface components { name: string; }; /** @enum {string} */ - ModelType: "SKLEARN" | "TORCH_ONNX" | "TORCHSCRIPT" | "R_BNLEARN_DISCRETE" | "R_CARET" | "R_GBM" | "R_NAIVE_BAYES" | "R_PBPK" | "R_RF" | "R_RPART" | "R_SVM" | "R_TREE_CLASS" | "R_TREE_REGR" | "QSAR_TOOLBOX_CALCULATOR" | "QSAR_TOOLBOX_QSAR_MODEL" | "QSAR_TOOLBOX_PROFILER"; + ModelType: "SKLEARN_ONNX" | "TORCH_SEQUENCE_ONNX" | "TORCH_GEOMETRIC_ONNX" | "TORCHSCRIPT" | "R_BNLEARN_DISCRETE" | "R_CARET" | "R_GBM" | "R_NAIVE_BAYES" | "R_PBPK" | "R_RF" | "R_RPART" | "R_SVM" | "R_TREE_CLASS" | "R_TREE_REGR" | "QSAR_TOOLBOX_CALCULATOR" | "QSAR_TOOLBOX_QSAR_MODEL" | "QSAR_TOOLBOX_PROFILER"; /** @description A preprocessor for the model */ Transformer: { /** Format: int64 */ diff --git a/src/app/dashboard/user/[username]/page.tsx b/src/app/dashboard/user/[username]/page.tsx index b71ae24..56bbc3d 100644 --- a/src/app/dashboard/user/[username]/page.tsx +++ b/src/app/dashboard/user/[username]/page.tsx @@ -26,10 +26,12 @@ export async function generateMetadata({ } catch (e) { return generateSharedMetadata(); } + const image = user?.avatarUrl; return generateSharedMetadata( `@${user?.username ?? ''}`, `User profile for user ${user?.username}`, + image ? [image] : undefined, ); } diff --git a/src/app/shared.metadata.ts b/src/app/shared.metadata.ts index 6fd8b74..ddbca75 100644 --- a/src/app/shared.metadata.ts +++ b/src/app/shared.metadata.ts @@ -7,7 +7,11 @@ export const jaqpotAppDescription = export const generateSharedMetadata = ( pageTitle: string = '', pageDescription: string = '', + imageUrls: string[] = [], ): Metadata => { + const ogImageUrls = imageUrls.map((imageUrl) => ({ + url: imageUrl, + })); return { metadataBase: new URL(process.env.NEXT_PUBLIC_APP_URL!), title: `${pageTitle} | Jaqpot`, @@ -17,7 +21,7 @@ export const generateSharedMetadata = ( url: process.env.NEXT_PUBLIC_APP_URL!, type: 'website', description: `${pageDescription ? pageDescription + '. ' : ''}${jaqpotAppDescription}`, - ...openGraphImage, + images: [...ogImageUrls, '/opengraph-logo.png'], }, }; };