feeditem_rss: use guid element
This commit is contained in:
parent
3c8060aca0
commit
b09a4cdccc
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue