kopia lustrzana https://github.com/friendica/friendica
Merge pull request #12088 from MrPetovan/bug/probe-atom
Also look for Atom feeds when probing link URLspull/12089/head
commit
cdacc3f4fb
|
@ -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) : '';
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue