diff options
author | Nicolas Lœuillet <nicolas.loeuillet@gmail.com> | 2014-03-01 13:09:37 +0100 |
---|---|---|
committer | Nicolas Lœuillet <nicolas.loeuillet@gmail.com> | 2014-03-01 13:09:37 +0100 |
commit | 223268c2fa34c497d91338e2553bc74bb1b26859 (patch) | |
tree | 0508a24008a4c04cdcc033dcf8f4772df93c6567 /inc | |
parent | 4c14936353253ab521d6b64d0b9eafcb5e490cec (diff) | |
download | wallabag-223268c2fa34c497d91338e2553bc74bb1b26859.tar.gz wallabag-223268c2fa34c497d91338e2553bc74bb1b26859.tar.zst wallabag-223268c2fa34c497d91338e2553bc74bb1b26859.zip |
[fix] RSS Feeds don't validate / W3C #384
Diffstat (limited to 'inc')
-rw-r--r-- | inc/3rdparty/libraries/feedwriter/FeedItem.php | 1 | ||||
-rwxr-xr-x | inc/poche/Poche.class.php | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/inc/3rdparty/libraries/feedwriter/FeedItem.php b/inc/3rdparty/libraries/feedwriter/FeedItem.php index 9373deeb..0eae5e08 100644 --- a/inc/3rdparty/libraries/feedwriter/FeedItem.php +++ b/inc/3rdparty/libraries/feedwriter/FeedItem.php | |||
@@ -156,6 +156,7 @@ | |||
156 | if($this->version == RSS2 || $this->version == RSS1) | 156 | if($this->version == RSS2 || $this->version == RSS1) |
157 | { | 157 | { |
158 | $this->setElement('link', $link); | 158 | $this->setElement('link', $link); |
159 | $this->setElement('guid', $link); | ||
159 | } | 160 | } |
160 | else | 161 | else |
161 | { | 162 | { |
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 49651c52..0c4143e1 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -1147,8 +1147,9 @@ class Poche | |||
1147 | $feed = new FeedWriter(RSS2); | 1147 | $feed = new FeedWriter(RSS2); |
1148 | $feed->setTitle('wallabag — ' . $type . ' feed'); | 1148 | $feed->setTitle('wallabag — ' . $type . ' feed'); |
1149 | $feed->setLink(Tools::getPocheUrl()); | 1149 | $feed->setLink(Tools::getPocheUrl()); |
1150 | $feed->setChannelElement('updated', date(DATE_RSS , time())); | 1150 | $feed->setChannelElement('pubDate', date(DATE_RSS , time())); |
1151 | $feed->setChannelElement('author', 'wallabag'); | 1151 | $feed->setChannelElement('generator', 'wallabag'); |
1152 | $feed->setDescription('wallabag ' . $type . ' elements'); | ||
1152 | 1153 | ||
1153 | if ($type == 'tag') { | 1154 | if ($type == 'tag') { |
1154 | $entries = $this->store->retrieveEntriesByTag($tag_id, $user_id); | 1155 | $entries = $this->store->retrieveEntriesByTag($tag_id, $user_id); |