From: Andrew Dolgov Date: Wed, 1 May 2013 15:12:32 +0000 (+0400) Subject: feeditem_rss: use guid element X-Git-Tag: 1.7.9~25^2~40 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b09a4cdccc0d8c85af5d5a97be32536579b9db33;p=tt-rss.git feeditem_rss: use guid element --- diff --git a/classes/feeditem/rss.php b/classes/feeditem/rss.php index e7ea1df5..d5667102 100644 --- a/classes/feeditem/rss.php +++ b/classes/feeditem/rss.php @@ -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() {