From 46b0b8371de9743fca510105e9334fe32c142c50 Mon Sep 17 00:00:00 2001 From: Mark Skelton Date: Tue, 1 Oct 2024 17:11:19 -0500 Subject: [PATCH] Use byte id for links --- app/(main)/bytes/page.tsx | 2 +- app/rss/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/(main)/bytes/page.tsx b/app/(main)/bytes/page.tsx index f16725e1..c7ecaa5b 100644 --- a/app/(main)/bytes/page.tsx +++ b/app/(main)/bytes/page.tsx @@ -86,7 +86,7 @@ export default async function Bytes({
- + {byte.title} diff --git a/app/rss/utils.ts b/app/rss/utils.ts index df830db6..74a3b468 100644 --- a/app/rss/utils.ts +++ b/app/rss/utils.ts @@ -46,7 +46,7 @@ export const getFeed = cache(async () => { ...byte, category: "Bytes", date: byte.createdAt, - url: `${siteMeta.url}/bytes/${byte.slug}`, + url: `${siteMeta.url}/bytes/${byte.id}`, })), ].sort((a, b) => b.date.getTime() - a.date.getTime())