[fix] RSS Feeds don't validate / W3C #384

This commit is contained in:
Nicolas Lœuillet 2014-03-01 13:09:37 +01:00
parent 4c14936353
commit 223268c2fa
2 changed files with 4 additions and 2 deletions

View File

@ -156,6 +156,7 @@
if($this->version == RSS2 || $this->version == RSS1)
{
$this->setElement('link', $link);
$this->setElement('guid', $link);
}
else
{

View File

@ -1147,8 +1147,9 @@ class Poche
$feed = new FeedWriter(RSS2);
$feed->setTitle('wallabag — ' . $type . ' feed');
$feed->setLink(Tools::getPocheUrl());
$feed->setChannelElement('updated', date(DATE_RSS , time()));
$feed->setChannelElement('author', 'wallabag');
$feed->setChannelElement('pubDate', date(DATE_RSS , time()));
$feed->setChannelElement('generator', 'wallabag');
$feed->setDescription('wallabag ' . $type . ' elements');
if ($type == 'tag') {
$entries = $this->store->retrieveEntriesByTag($tag_id, $user_id);