feeditem_rss: use guid element

This commit is contained in:
Andrew Dolgov 2013-05-01 19:12:32 +04:00
parent 3c8060aca0
commit b09a4cdccc
1 changed files with 7 additions and 1 deletions

View 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() {