]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
[fix] RSS Feeds don't validate / W3C #384
authorNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Sat, 1 Mar 2014 12:09:37 +0000 (13:09 +0100)
committerNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Sat, 1 Mar 2014 12:09:37 +0000 (13:09 +0100)
inc/3rdparty/libraries/feedwriter/FeedItem.php
inc/poche/Poche.class.php

index 9373deeb3e914f0279c6fd851ef7aeddb6ec82c4..0eae5e086b9bbfc3709822a72b29d209b92fc22a 100644 (file)
                if($this->version == RSS2 || $this->version == RSS1)\r
                {\r
                        $this->setElement('link', $link);\r
+                       $this->setElement('guid', $link);\r
                }\r
                else\r
                {\r
index 49651c5290ffd45112d5e26f3a91257868936e20..0c4143e190f3a87c20dfe9109017588e38e4ff0f 100755 (executable)
@@ -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);