From cb9c2973513c26f8f7c23c98a9a025856e98778a Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 23 Oct 2023 07:18:06 +0100 Subject: [PATCH] update again --- src/app/player/[id]/page.tsx | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/app/player/[id]/page.tsx b/src/app/player/[id]/page.tsx index 0b2f1f6..074b4da 100644 --- a/src/app/player/[id]/page.tsx +++ b/src/app/player/[id]/page.tsx @@ -1,4 +1,5 @@ import PlayerPage from "@/components/player/PlayerPage"; +import { ssrSettings } from "@/ssrSettings"; import { ScoreSaberAPI } from "@/utils/scoresaber/api"; import { Metadata } from "next"; @@ -16,14 +17,18 @@ export async function generateMetadata({ }; } + const description = + `View ${player.name}'s scores, top plays, and more. ` + + `Rank: #${player.rank} (#${player.countryRank} - ${player.country}) ` + + `PP: ${player.pp} ` + + `Play Count: ${player.scoreStats.totalPlayCount}`; + return { title: `${player.name}`, - description: - `View ${player.name}'s scores, top plays, and more. ` + - `Rank: #${player.rank} (#${player.countryRank} - ${player.country}) ` + - `PP: ${player.pp} ` + - `Play Count: ${player.scoreStats.totalPlayCount}`, - twitter: { + description: description, + openGraph: { + title: `${ssrSettings.siteName} - ${player.name}`, + description: description, images: [ { url: player.profilePicture,