require_once('include/Probe.php');
$data = Probe::uri($url);
- // Does this address belongs to a valid network?
- if (!in_array($data["network"], array(NETWORK_DFRN, NETWORK_OSTATUS, NETWORK_DIASPORA))) {
+ // Last try in gcontact for unsupported networks
+ if (!in_array($data["network"], array(NETWORK_DFRN, NETWORK_OSTATUS, NETWORK_DIASPORA, NETWORK_PUMPIO))) {
if ($uid != 0) {
return 0;
}
$data = $gcontacts[0];
}
- // Unable to convert nick@server.tld into http://server.tld/nick
- if (!$data['url'] && (!strstr($url, "http") OR strstr($url, "@"))) {
- return 0;
- }
-
$url = $data["url"];
if (!$contact_id) {