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:
parent
4c14936353
commit
223268c2fa
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user