diff options
| author | Taqib Ibrahim <Taqib.ibrahim@gmail.com> | 2025-07-23 15:45:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-23 15:45:07 +0100 |
| commit | 184dcbabefa357b12c2cce3e6c4ab87a975a33c6 (patch) | |
| tree | 9a207fc5726228a1f987cc1766d8d60312925d88 /apps/web/src/app | |
| parent | 57243bc4b4d28e80e42ec70e3656e5a94c8407e2 (diff) | |
| download | opencut-184dcbabefa357b12c2cce3e6c4ab87a975a33c6.tar.gz | |
Update apps/web/src/app/rss.xml/route.ts
Co-authored-by: Dominik K. <dominik@koch-bautechnik.de>
Diffstat (limited to 'apps/web/src/app')
| -rw-r--r-- | apps/web/src/app/rss.xml/route.ts | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/web/src/app/rss.xml/route.ts b/apps/web/src/app/rss.xml/route.ts index 1567d4a7..8602a03f 100644 --- a/apps/web/src/app/rss.xml/route.ts +++ b/apps/web/src/app/rss.xml/route.ts @@ -18,17 +18,17 @@ export async function GET() { }`, }); - posts.forEach((article) => { + for (const post of posts) { feed.addItem({ - title: article.title, - id: `${SITE_INFO.url}/blog/${article.slug}`, - link: `${SITE_INFO.url}/blog/${article.slug}`, - description: article.description, - author: article.authors.map((author) => ({ - name: author.name ?? 'OpenCut', + title: post.title, + id: `${SITE_INFO.url}/blog/${post.slug}`, + link: `${SITE_INFO.url}/blog/${post.slug}`, + description: post.description, + author: post.authors.map((author) => ({ + name: post.name ?? 'OpenCut', })), - date: new Date(article.publishedAt), - image: article.coverImage, + date: new Date(post.publishedAt), + image: post.coverImage, }); }); |
