Ignore non-atom updates links in Webfinger

This commit is contained in:
Evan Prodromou 2012-05-04 12:01:13 -04:00
parent 7f0df2f257
commit 961607bc5d
1 changed files with 3 additions and 1 deletions

View 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'];