mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-27 11:31:05 +00:00
[fix] RSS Feeds don't validate / W3C #384
This commit is contained in:
parent
4c14936353
commit
223268c2fa
2 changed files with 4 additions and 2 deletions
|
@ -156,6 +156,7 @@
|
|||
if($this->version == RSS2 || $this->version == RSS1)
|
||||
{
|
||||
$this->setElement('link', $link);
|
||||
$this->setElement('guid', $link);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue