Update apps/web/src/app/rss.xml/route.ts

Co-authored-by: Dominik K. <dominik@koch-bautechnik.de>
This commit is contained in:
Taqib Ibrahim 2025-07-23 15:45:07 +01:00 committed by GitHub
parent 57243bc4b4
commit 184dcbabef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 9 deletions

View File

@ -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,
});
});