We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 961607bc authored by Evan Prodromou's avatar Evan Prodromou

Ignore non-atom updates links in Webfinger

parent 7f0df2f2
...@@ -34,7 +34,9 @@ class DiscoveryHints { ...@@ -34,7 +34,9 @@ class DiscoveryHints {
$hints['salmon'] = $link['href']; $hints['salmon'] = $link['href'];
break; break;
case Discovery::UPDATESFROM: case Discovery::UPDATESFROM:
$hints['feedurl'] = $link['href']; if (empty($link['type']) || $link['type'] == 'application/atom+xml') {
$hints['feedurl'] = $link['href'];
}
break; break;
case Discovery::HCARD: case Discovery::HCARD:
$hints['hcardurl'] = $link['href']; $hints['hcardurl'] = $link['href'];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment