feat(rss): add castopod version to generator + follow rfc 9110 to format it as user-agent

This commit is contained in:
Yassine Doghri 2024-04-29 13:51:00 +00:00
parent bb628f355f
commit 4a3632e061
1 changed files with 1 additions and 1 deletions

View File

@ -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 === '') {