- // This is a bugfix for this issue: https://github.com/redmatrix/hubzilla/issues/851
- // $data = str_replace('&url=', '&url=', $data);
- // we have to decide if we want to create a workaround - or we wait for an update
-
- $xrd = parse_xml_string($data, false);
-
- if (!is_object($xrd)) {
- // If it is not XML, maybe it is JSON
- $webfinger = json_decode($data, true);
-
+ $webfinger = json_decode($data, true);
+ if (is_array($webfinger)) {