From fd6d885e56400914b377f169db04752ebf4b0bde Mon Sep 17 00:00:00 2001 From: Gareth Jackson Date: Sat, 14 Feb 2026 19:56:12 +0000 Subject: [PATCH] Add commentCount and score to RSS feed --- apps/news/news.arc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/news/news.arc b/apps/news/news.arc index 55c2d40a..34847e89 100644 --- a/apps/news/news.arc +++ b/apps/news/news.arc @@ -2659,11 +2659,13 @@ function addTag(tag) { (each s stories (tag item (let comurl (+ site-url* (item-url s!id)) - (tag title (pr (eschtml s!title) - (aif (sitename s!url) (+ " (" it ")") ""))) - (tag link (pr (if (blank s!url) comurl (eschtml s!url)))) - (tag pubDate (pr (rfc822 s!time))) - (tag comments (pr comurl)) + (tag title (pr (eschtml s!title) + (aif (sitename s!url) (+ " (" it ")") ""))) + (tag link (pr (if (blank s!url) comurl (eschtml s!url)))) + (tag pubDate (pr (rfc822 s!time))) + (tag comments (pr comurl)) + (tag commentCount (pr (- (len (family s)) 1))) + (tag slash:score (pr s!score)) (tag description (cdata (link "Comments" comurl)))))))))