From 0cb5ff561030202e2dcf30d4980b5ed551b418d2 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 23 Oct 2023 07:12:18 +0100 Subject: [PATCH] update embed again --- src/app/player/[id]/page.tsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/app/player/[id]/page.tsx b/src/app/player/[id]/page.tsx index 9cdc000..fb6a00a 100644 --- a/src/app/player/[id]/page.tsx +++ b/src/app/player/[id]/page.tsx @@ -18,18 +18,17 @@ export async function generateMetadata({ 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} - ` - .replaceAll("\n", "") - .trim(), + category: "article", + 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: { images: [ { url: player.profilePicture, + type: "article", }, ], },