mirror of
https://github.com/friendica/friendica
synced 2024-11-18 10:23:41 +00:00
Also look for Atom feeds when probing link URLs
This commit is contained in:
parent
df69dc0edb
commit
5ef76e8f14
1 changed files with 1 additions and 0 deletions
|
@ -1721,6 +1721,7 @@ class Probe
|
|||
$xpath = new DOMXPath($doc);
|
||||
|
||||
$feedUrl = $xpath->evaluate('string(/html/head/link[@type="application/rss+xml" and @rel="alternate"]/@href)');
|
||||
$feedUrl = $feedUrl ?: $xpath->evaluate('string(/html/head/link[@type="application/atom+xml" and @rel="alternate"]/@href)');
|
||||
|
||||
$feedUrl = $feedUrl ? self::ensureAbsoluteLinkFromHTMLDoc($feedUrl, $url, $xpath) : '';
|
||||
|
||||
|
|
Loading…
Reference in a new issue