mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +00:00
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:
commit
d54139b18c
@ -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 === '') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user