$gcontact["server_url"] = $data["baseurl"];
- unset($data["guid"]);
- unset($data["batch"]);
- unset($data["poll"]);
- unset($data["request"]);
- unset($data["confirm"]);
- unset($data["poco"]);
- unset($data["priority"]);
- unset($data["pubkey"]);
- unset($data["baseurl"]);
-
$gcontact = array_merge($gcontact, $data);
if ($alternate AND ($gcontact['network'] == NETWORK_OSTATUS)) {
$gcontact = array_merge($gcontacts[0], $data);
- unset($gcontact["guid"]);
- unset($gcontact["batch"]);
- unset($gcontact["poll"]);
- unset($gcontact["request"]);
- unset($gcontact["confirm"]);
- unset($gcontact["poco"]);
- unset($gcontact["priority"]);
- unset($gcontact["pubkey"]);
- unset($gcontact["baseurl"]);
+ $gcontact["server_url"] = $data["baseurl"];
if (sanitized_gcontact($gcontact)) {
update_gcontact($gcontact);
$contact["server_url"] = $data["baseurl"];
- unset($contact["guid"]);
- unset($contact["batch"]);
- unset($contact["poll"]);
- unset($contact["request"]);
- unset($contact["confirm"]);
- unset($contact["poco"]);
- unset($contact["priority"]);
- unset($contact["pubkey"]);
- unset($contact["baseurl"]);
-
update_gcontact($contact);
$feedret = z_fetch_url($data["poll"]);
return;
}
+ $data["server_url"] = $data["baseurl"];
+
update_gcontact($data);
}