Merge branch 'feat/generator-user-agent' into 'develop'

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

See merge request adaures/castopod!345
This commit is contained in:
Yassine Doghri 2025-03-14 15:10:35 +00:00
commit d54139b18c

View File

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