Adding missing pubDate.

This commit is contained in:
Alexey Skobkin 2020-04-04 03:37:08 +03:00
parent f311605ae3
commit 2d360a66a3
No known key found for this signature in database
GPG key ID: 5D5CEF6F221278E7

View file

@ -56,6 +56,7 @@ class RssGenerator
}
// TODO feed pagination
// @see https://tools.ietf.org/html/rfc5005#section-3
return $feed;
}
@ -101,6 +102,7 @@ class RssGenerator
$item
->title($torrent->getName())
->description($torrent->getInfoHash())
->pubDate($torrent->getDiscoveredOn())
->url($this->generateUrl('torrents_show', ['id' => $torrent->getId()]))
->enclosure(
$this->magnetGenerator->generate($torrent->getInfoHash(), $torrent->getName()),