diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-11-23 23:02:26 -0800 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-11-23 23:03:20 -0800 |
| commit | 4a7872b52b299376a0837631beeadff3ddecd143 (patch) | |
| tree | b52bc49c6c3fed44dbd463e5989b1f173d137ea9 | |
| parent | cd84e5668401bbb15ed00f447b1edc9934396baa (diff) | |
fix: image typing issue in middleware
| -rw-r--r-- | middleware/src/app/[gameName]/page.tsx | 5 | ||||
| -rw-r--r-- | 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": { |
