]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Ignore non-atom updates links in Webfinger
authorEvan Prodromou <evan@status.net>
Fri, 4 May 2012 16:01:13 +0000 (12:01 -0400)
committerEvan Prodromou <evan@status.net>
Fri, 4 May 2012 16:01:13 +0000 (12:01 -0400)
plugins/OStatus/lib/discoveryhints.php

index a98f4a6d672af976c8882242321dd57f4f0e1b8d..0a86a1bf0486d902f049b80868a9e83e0b9b107c 100644 (file)
@@ -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'];