From b09a4cdccc0d8c85af5d5a97be32536579b9db33 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 1 May 2013 19:12:32 +0400 Subject: [PATCH] feeditem_rss: use guid element --- classes/feeditem/rss.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/classes/feeditem/rss.php b/classes/feeditem/rss.php index e7ea1df57..d5667102d 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() {