+ // Is the profile link the alternate OStatus link notation? (http://domain.tld/user/4711)
+ // Then check the other link and delete this one
+ if (($data["network"] == NETWORK_OSTATUS) AND poco_alternate_ostatus_url($profile) AND
+ (normalise_link($profile) == normalise_link($data["alias"])) AND
+ (normalise_link($profile) != normalise_link($data["url"]))) {
+
+ // Delete the old entry
+ q("DELETE FROM `gcontact` WHERE `nurl` = '%s'", dbesc(normalise_link($profile)));
+ q("DELETE FROM `glink` WHERE `gcid` = %d", intval($gcontacts[0]["id"]));
+
+ poco_check($data["url"], $data["name"], $data["network"], $data["photo"], $gcontacts[0]["about"], $gcontacts[0]["location"],
+ $gcontacts[0]["gender"], $gcontacts[0]["keywords"], $data["addr"], $gcontacts[0]["updated"], $gcontacts[0]["generation"]);
+
+ poco_last_updated($data["url"], $force);
+
+ return false;
+ }
+
+ if (($data["poll"] == "") OR (in_array($data["network"], array(NETWORK_FEED, NETWORK_PHANTOM)))) {