1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 21:35:56 +00:00

feeditem_rss: use guid element

This commit is contained in:
Andrew Dolgov
2013-05-01 19:12:32 +04:00
parent 3c8060aca0
commit b09a4cdccc

View File

@@ -7,7 +7,13 @@ class FeedItem_RSS {
} }
function get_id() { 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() { function get_date() {