From 4a3632e061d83824381c65bf375baa5430565950 Mon Sep 17 00:00:00 2001 From: Yassine Doghri Date: Mon, 29 Apr 2024 13:51:00 +0000 Subject: [PATCH] feat(rss): add castopod version to generator + follow rfc 9110 to format it as user-agent --- app/Helpers/rss_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Helpers/rss_helper.php b/app/Helpers/rss_helper.php index 90f9ee71..30fa98df 100644 --- a/app/Helpers/rss_helper.php +++ b/app/Helpers/rss_helper.php @@ -66,7 +66,7 @@ if (! function_exists('get_rss_feed')) { // the last build date corresponds to the creation of the feed.xml cache $channel->addChild('lastBuildDate', (new Time('now'))->format(DATE_RFC1123)); - $channel->addChild('generator', 'Castopod - https://castopod.org/'); + $channel->addChild('generator', sprintf('Castopod/%s (+https://castopod.org/)', CP_VERSION)); $channel->addChild('docs', 'https://cyber.harvard.edu/rss/rss.html'); if ($podcast->guid === '') {