Skip to content
Snippets Groups Projects
Commit 042003d5 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

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

parent 8a50539c
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,12 @@ class FeedItem_RSS extends FeedItem_Common { ...@@ -25,6 +25,12 @@ class FeedItem_RSS extends FeedItem_Common {
return $link->getAttribute("href"); 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); $link = $this->elem->getElementsByTagName("link")->item(0);
if ($link) { if ($link) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment