]> git.wh0rd.org Git - tt-rss.git/commitdiff
feeditem_rss: use guid element
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 1 May 2013 15:12:32 +0000 (19:12 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 1 May 2013 15:12:32 +0000 (19:12 +0400)
classes/feeditem/rss.php

index e7ea1df5799a7ef16b9d39600769c9e5d9397720..d5667102dc4d29559e33688af7381b7a86124a49 100644 (file)
@@ -7,7 +7,13 @@ class FeedItem_RSS {
        }
 
        function get_id() {
-               return $this->get_link();
+               $id = $this->elem->getElementsByTagName("guid")->item(0);
+
+               if ($id) {
+                       return $id->nodeValue;
+               } else {
+                       return $this->get_link();
+               }
        }
 
        function get_date() {