Compare commits

...

2 Commits

Author SHA1 Message Date
Yassine Doghri
d54139b18c 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
2025-03-14 15:10:35 +00:00
Yassine Doghri
4a3632e061 feat(rss): add castopod version to generator + follow rfc 9110 to format it as user-agent 2024-04-29 13:51:00 +00:00

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