Commit f8580262 authored by David Morley's avatar David Morley

well-known with only one borks on max

parent 81761237
Pipeline #834 passed with stage
in 2 minutes and 16 seconds
......@@ -113,7 +113,11 @@ foreach ($pods as $pod) {
$nodeinfo_url = "https://{$domain}/nodeinfo/1.0";
if ($info = json_decode($nodeinfo_meta['body'] ?: '', true)) {
$nodeinfo_url = max($info['links'])['href'];
if (count($info['links'], COUNT_RECURSIVE) === 2) {
$nodeinfo_url = $info['links']['href'];
} else {
$nodeinfo_url = max($info['links'])['href'];
}
}
debug('Nodeinfo link', $nodeinfo_url);
......
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