- $data = Probe::uri($url);
- if ($data["network"] == NETWORK_OSTATUS) {
- $result = new_contact($uid, $url, true, NETWORK_OSTATUS);
+ $curlResult = Probe::uri($url);
+ if ($curlResult["network"] == Protocol::OSTATUS) {
+ $result = Contact::createFromProbe($uid, $url, true, Protocol::OSTATUS);