Review changes

Update update and new functions to updateFromProbe and create. Update calls to renamed functions.
This commit is contained in:
Adam Magness
2018-01-09 11:23:26 -05:00
parent 484eb960d7
commit c81e83c500
7 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -242,7 +242,7 @@ function _contact_update($contact_id)
$uid = $contact["uid"];
if ($r[0]["network"] == NETWORK_OSTATUS) {
$result = Contact::new($uid, $contact["url"], false, $contact["network"]);
$result = Contact::create($uid, $contact["url"], false, $contact["network"]);
if ($result['success']) {
q("UPDATE `contact` SET `subhub` = 1 WHERE `id` = %d", intval($contact_id));
@@ -274,7 +274,7 @@ function _contact_update_profile($contact_id)
$update = array();
if ($data["network"] == NETWORK_OSTATUS) {
$result = Contact::new($uid, $data["url"], false);
$result = Contact::create($uid, $data["url"], false);
if ($result['success']) {
$update["subhub"] = true;