mirror of
https://github.com/juherr/kill-the-news.git
synced 2026-08-05 09:04:16 +00:00
feat: parse <author> from From header in RSS items
Parse the From header into name + email parts so the feed library renders proper RFC 2822 format (email (Name)) in <author> elements. Also passes feedId to the generator so item links can point to the upcoming /entries/:feedId/:receivedAt route. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
6a6614fb26
commit
54e7a1bfa0
+1
-1
@@ -62,7 +62,7 @@ export async function handle(c: Context): Promise<Response> {
|
||||
|
||||
// Generate the RSS feed XML
|
||||
const baseUrl = `https://${env.DOMAIN}`;
|
||||
const rssXml = generateRssFeed(feedConfig, emailsData, baseUrl);
|
||||
const rssXml = generateRssFeed(feedConfig, emailsData, baseUrl, feedId);
|
||||
|
||||
// Return the RSS feed with appropriate content type
|
||||
return new Response(rssXml, {
|
||||
|
||||
Reference in New Issue
Block a user