Merge pull request #8751 from annando/notice

Fix notice "Undefined index: template in src/Network/Probe.php on line 598"
This commit is contained in:
Hypolite Petovan
2020-06-10 00:10:32 -04:00
committed by GitHub

View File

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