diff --git a/mod/ostatus_subscribe.php b/mod/ostatus_subscribe.php index 567082062..5d493db32 100644 --- a/mod/ostatus_subscribe.php +++ b/mod/ostatus_subscribe.php @@ -77,8 +77,8 @@ function ostatus_subscribe_content(App $a) $o .= '
' . $counter . '/' . $total . ': ' . $url; - $curlResult = Probe::uri($url); - if ($curlResult['network'] == Protocol::OSTATUS) { + $probed = Probe::uri($url); + if ($probed['network'] == Protocol::OSTATUS) { $result = Contact::createFromProbe($uid, $url, true, Protocol::OSTATUS); if ($result['success']) { $o .= ' - ' . L10n::t('success'); diff --git a/src/Network/Probe.php b/src/Network/Probe.php index f4e3d1d43..b4e297afa 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -1317,7 +1317,7 @@ class Probe if ($curlResult->isTimeout()) { return false; } - $pubkey = $curlResult['body']; + $pubkey = $curlResult->getBody(); } $key = explode(".", $pubkey);