Bugfix: Revive dead contacts
This commit is contained in:
parent
1441abd15a
commit
08f461f70c
5 changed files with 17 additions and 14 deletions
|
@ -244,7 +244,7 @@ function _contact_update($contact_id) {
|
|||
return;
|
||||
|
||||
if ($r[0]["network"] == NETWORK_OSTATUS) {
|
||||
$result = new_contact($uid, $r[0]["url"], false);
|
||||
$result = new_contact($uid, $r[0]["url"], false, $r[0]["network"]);
|
||||
|
||||
if ($result['success'])
|
||||
$r = q("UPDATE `contact` SET `subhub` = 1 WHERE `id` = %d",
|
||||
|
|
|
@ -66,7 +66,7 @@ function ostatus_subscribe_content(App $a) {
|
|||
|
||||
$data = probe_url($url);
|
||||
if ($data["network"] == NETWORK_OSTATUS) {
|
||||
$result = new_contact($uid,$url,true);
|
||||
$result = new_contact($uid, $url, true, NETWORK_OSTATUS);
|
||||
if ($result["success"]) {
|
||||
$o .= " - ".t("success");
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue