mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 23:15:55 +00:00
atom: consider link rel=alternate in feed element for site urls
This commit is contained in:
@@ -141,9 +141,14 @@ class FeedParser {
|
|||||||
|
|
||||||
$link = $xpath->query("//atom:feed/atom:link[not(@rel)]")->item(0);
|
$link = $xpath->query("//atom:feed/atom:link[not(@rel)]")->item(0);
|
||||||
|
|
||||||
|
if (!$link)
|
||||||
|
$link = $xpath->query("//atom:feed/atom:link[@rel='alternate']")->item(0);
|
||||||
|
|
||||||
if (!$link)
|
if (!$link)
|
||||||
$link = $xpath->query("//atom03:feed/atom03:link[not(@rel)]")->item(0);
|
$link = $xpath->query("//atom03:feed/atom03:link[not(@rel)]")->item(0);
|
||||||
|
|
||||||
|
if (!$link)
|
||||||
|
$link = $xpath->query("//atom03:feed/atom03:link[@rel='alternate']")->item(0);
|
||||||
|
|
||||||
if ($link && $link->hasAttributes()) {
|
if ($link && $link->hasAttributes()) {
|
||||||
$this->link = $link->getAttribute("href");
|
$this->link = $link->getAttribute("href");
|
||||||
|
|||||||
Reference in New Issue
Block a user