mirror of
https://github.com/moparisthebest/wallabag
synced 2024-12-24 00:08:57 -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)
|
||||
{
|
||||
$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 New Issue
Block a user