mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-12 19:41:04 +02:00
atom: fix rel=alternate links
This commit is contained in:
parent
602fe53496
commit
72c29b65d4
@ -22,7 +22,8 @@ class FeedItem_Atom extends FeedItem_Common {
|
|||||||
$links = $this->elem->getElementsByTagName("link");
|
$links = $this->elem->getElementsByTagName("link");
|
||||||
|
|
||||||
foreach ($links as $link) {
|
foreach ($links as $link) {
|
||||||
if ($link && $link->hasAttribute("href") && !$link->hasAttribute("rel")) {
|
if ($link && $link->hasAttribute("href") && (!$link->hasAttribute("rel")
|
||||||
|
|| $link->getAttribute("rel") == "alternate")) {
|
||||||
return $link->getAttribute("href");
|
return $link->getAttribute("href");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user