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

parser/rss: try to get link from guid isPermaLink=true

This commit is contained in:
Andrew Dolgov
2013-05-20 15:01:18 +04:00
parent 8a50539c44
commit 042003d55e

View File

@@ -25,6 +25,12 @@ class FeedItem_RSS extends FeedItem_Common {
return $link->getAttribute("href");
}
$link = $this->elem->getElementsByTagName("guid")->item(0);
if ($link && $link->hasAttributes() && $link->getAttribute("isPermaLink") == "true") {
return $link->nodeValue;
}
$link = $this->elem->getElementsByTagName("link")->item(0);
if ($link) {