From 961607bc5de14c72c973a1cc2cd962e91395168c Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 4 May 2012 12:01:13 -0400 Subject: [PATCH] Ignore non-atom updates links in Webfinger --- plugins/OStatus/lib/discoveryhints.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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']; -- 2.39.5