mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
Update apps/web/src/app/rss.xml/route.ts
Co-authored-by: Dominik K. <dominik@koch-bautechnik.de>
This commit is contained in:
co-authored by
Dominik K.
parent
57243bc4b4
commit
184dcbabef
@@ -18,17 +18,17 @@ export async function GET() {
|
|||||||
}`,
|
}`,
|
||||||
});
|
});
|
||||||
|
|
||||||
posts.forEach((article) => {
|
for (const post of posts) {
|
||||||
feed.addItem({
|
feed.addItem({
|
||||||
title: article.title,
|
title: post.title,
|
||||||
id: `${SITE_INFO.url}/blog/${article.slug}`,
|
id: `${SITE_INFO.url}/blog/${post.slug}`,
|
||||||
link: `${SITE_INFO.url}/blog/${article.slug}`,
|
link: `${SITE_INFO.url}/blog/${post.slug}`,
|
||||||
description: article.description,
|
description: post.description,
|
||||||
author: article.authors.map((author) => ({
|
author: post.authors.map((author) => ({
|
||||||
name: author.name ?? 'OpenCut',
|
name: post.name ?? 'OpenCut',
|
||||||
})),
|
})),
|
||||||
date: new Date(article.publishedAt),
|
date: new Date(post.publishedAt),
|
||||||
image: article.coverImage,
|
image: post.coverImage,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user