Fix notice " Undefined index: template in src/Network/Probe.php on line 598"

This commit is contained in:
Michael 2020-06-09 20:44:55 +00:00
parent 59bd6fd908
commit e485836a24

View File

@ -594,7 +594,7 @@ class Probe
} }
foreach ($webfinger['links'] as $link) { foreach ($webfinger['links'] as $link) {
if ($link['rel'] === ActivityNamespace::OSTATUSSUB) { if (!empty($link['template']) && ($link['rel'] === ActivityNamespace::OSTATUSSUB)) {
$result['subscribe'] = $link['template']; $result['subscribe'] = $link['template'];
} }
} }