From c363151eff2bfd22ade4b88a9a488406e29a581c Mon Sep 17 00:00:00 2001 From: grim <75869731+vys69@users.noreply.github.com> Date: Mon, 4 Nov 2024 19:52:11 -0800 Subject: [PATCH] grrr --- dist/routes.js | 6 +++--- dist/routes.js.map | 2 +- src/routes.ts | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dist/routes.js b/dist/routes.js index 2015b19..7448799 100644 --- a/dist/routes.js +++ b/dist/routes.js @@ -312,12 +312,12 @@ router.get('/games/:gameId/:gameName?', (req, res) => __awaiter(void 0, void 0, const gameData = yield (0, api_1.fetchRobloxGameData)(gameId); // Check if the provided gameName matches the fetched data const encodedGameName = encodeURIComponent(gameData.name.replace(/\s+/g, '-')); - if (gameName !== encodedGameName) { + if (gameName && gameName !== encodedGameName) { return res.redirect(`/games/${gameId}/${encodedGameName}`); } - // Construct game thumbnail URL const thumbnailUrl = `https://www.roblox.com/asset-thumbnail/image?assetId=${gameId}&width=768&height=432&format=png`; const metaTags = ` + @@ -336,7 +336,7 @@ router.get('/games/:gameId/:gameName?', (req, res) => __awaiter(void 0, void 0, - ${gameData.name} - Roblox Game + ${gameData.name} - Roblox ${metaTags} diff --git a/dist/routes.js.map b/dist/routes.js.map index 9018335..6e04bfd 100644 --- a/dist/routes.js.map +++ b/dist/routes.js.map @@ -1 +1 @@ -{"version":3,"file":"routes.js","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAAiC;AACjC,+BAae;AAEf,MAAM,MAAM,GAAG,IAAA,gBAAM,GAAE,CAAC;AAExB,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CZ,CAAC;AAKF,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;IAC3B,OAAO,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACxB,CAAC,CAAC,CAAC;AAEH,M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AE,GAAG,MAAM,mBAAmB;QACnC,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,KAAK;KACjB,CAAC;IAEF,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AAC3B,CAAC,CAAC,CAAC;AAEH,kBAAe,MAAM,CAAC"} \ No newline at end of file diff --git a/src/routes.ts b/src/routes.ts index 1660bd7..9afd9b3 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -352,14 +352,14 @@ router.get('/games/:gameId/:gameName?', async (req, res) => { // Check if the provided gameName matches the fetched data const encodedGameName = encodeURIComponent(gameData.name.replace(/\s+/g, '-')); - if (gameName !== encodedGameName) { + if (gameName && gameName !== encodedGameName) { return res.redirect(`/games/${gameId}/${encodedGameName}`); } - // Construct game thumbnail URL const thumbnailUrl = `https://www.roblox.com/asset-thumbnail/image?assetId=${gameId}&width=768&height=432&format=png`; const metaTags = ` + @@ -379,7 +379,7 @@ router.get('/games/:gameId/:gameName?', async (req, res) => { - ${gameData.name} - Roblox Game + ${gameData.name} - Roblox ${metaTags}