From: Evan Prodromou Date: Fri, 4 May 2012 16:01:13 +0000 (-0400) Subject: Ignore non-atom updates links in Webfinger X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=961607bc5de14c72c973a1cc2cd962e91395168c;p=quix0rs-gnu-social.git Ignore non-atom updates links in Webfinger --- diff --git a/plugins/OStatus/lib/discoveryhints.php b/plugins/OStatus/lib/discoveryhints.php index a98f4a6d67..0a86a1bf04 100644 --- a/plugins/OStatus/lib/discoveryhints.php +++ b/plugins/OStatus/lib/discoveryhints.php @@ -34,7 +34,9 @@ class DiscoveryHints { $hints['salmon'] = $link['href']; break; case Discovery::UPDATESFROM: - $hints['feedurl'] = $link['href']; + if (empty($link['type']) || $link['type'] == 'application/atom+xml') { + $hints['feedurl'] = $link['href']; + } break; case Discovery::HCARD: $hints['hcardurl'] = $link['href'];