fix missing publication date for episodes

This commit is contained in:
dece 2024-09-01 16:37:22 +02:00
parent 5ddf553af3
commit 69ef5e9fb3

View file

@ -73,6 +73,7 @@ class FeedService
$itemElement->appendChild(new \DOMElement('description', $episode->getDescription())); $itemElement->appendChild(new \DOMElement('description', $episode->getDescription()));
$itemElement->appendChild(new \DOMElement('link', $audioUrl)); $itemElement->appendChild(new \DOMElement('link', $audioUrl));
$itemElement->appendChild(new \DOMElement('guid', $audioUrl)); $itemElement->appendChild(new \DOMElement('guid', $audioUrl));
$itemElement->appendChild(new \DOMElement('pubDate', $episode->getPublicationDate()->format(DATE_RSS)));
$filepath = $filepath =
($this->parameterBag->get('kernel.project_dir') ?: '') ($this->parameterBag->get('kernel.project_dir') ?: '')