From 4a7872b52b299376a0837631beeadff3ddecd143 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 23 Nov 2025 23:02:26 -0800 Subject: fix: image typing issue in middleware --- middleware/src/app/[gameName]/page.tsx | 5 ++++- site/public/locales/en/translation.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/middleware/src/app/[gameName]/page.tsx b/middleware/src/app/[gameName]/page.tsx index bce87c8..f87edc1 100644 --- a/middleware/src/app/[gameName]/page.tsx +++ b/middleware/src/app/[gameName]/page.tsx @@ -255,7 +255,10 @@ export default async function GamePage({ is_ai_summary: Boolean(row.is_ai_summary), en_headline: row.en_headline as string | null, en_content: row.en_content as string | null, - images, + images: images.map(img => ({ + image: String(img.image), + link: img.link ? String(img.link) : null + })), }; } } diff --git a/site/public/locales/en/translation.json b/site/public/locales/en/translation.json index 206e887..02a3c2c 100644 --- a/site/public/locales/en/translation.json +++ b/site/public/locales/en/translation.json @@ -18,7 +18,7 @@ "ai_summary_note": "The information above is written by AI", "read_more": "READ MORE", "copy_link_to_post": "Copy Link to Post", - "copy_link_notif": "Copied Perma Link to Post)", + "copy_link_notif": "Copied Perma Link to Post", "subscribed_to_games_count": "Subscribed to", "games": "game(s)", "gameselector": { -- cgit v1.2.3