From 69c60c7782b7334a83f52e3645cfc8e346a8b60f Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 26 May 2011 12:53:40 -0400 Subject: [PATCH] More RSS cleanup based on the suggestions of http://www.feedvalidator.org --- webcit/feed_generator.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/webcit/feed_generator.c b/webcit/feed_generator.c index b2dd236d6..25af56e71 100644 --- a/webcit/feed_generator.c +++ b/webcit/feed_generator.c @@ -42,7 +42,7 @@ void feed_rss_one_message(long msgnum) { wc_printf(""); wc_printf("%s/readfwd?go=", ChrPtr(site_prefix)); - escputs(ChrPtr(WC->CurRoom.name)); + urlescputs(ChrPtr(WC->CurRoom.name)); wc_printf("?start_reading_at=%ld", msgnum); while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) { @@ -124,6 +124,17 @@ void feed_rss_do_messages(void) { } +/* + * Output the room info file of the current room as a for the channel + */ +void feed_rss_do_room_info_as_description(void) +{ + wc_printf(""); + escputs(ChrPtr(WC->CurRoom.name)); /* FIXME use the output of RINF instead */ + wc_printf("\r\n"); +} + + /* * Entry point for RSS feed generator */ @@ -174,6 +185,7 @@ void feed_rss(void) { escputs(ChrPtr(site_prefix)); wc_printf("/\r\n"); + feed_rss_do_room_info_as_description(); feed_rss_do_messages(); wc_printf("" -- 2.39.2