1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-27 11:22:17 -05:00

[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) if($this->version == RSS2 || $this->version == RSS1)
{ {
$this->setElement('link', $link); $this->setElement('link', $link);
$this->setElement('guid', $link);
} }
else else
{ {

View File

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