From: Hypolite Petovan Date: Tue, 1 Nov 2022 04:45:46 +0000 (-0400) Subject: Also look for Atom feeds when probing link URLs X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5ef76e8f1409804c1395a3377f384c73444d8cb6;p=friendica.git Also look for Atom feeds when probing link URLs --- diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 45b838da21..fc7113dbda 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -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) : '';