X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fostatus_subscribe.php;h=70a36559e4483edf0ed4ca71e11619331f0fb870;hb=3359f3f5c7ecc4b6a34c4fcfc095ab4dd5fab0f1;hp=04c8d7bde79e841de8c8f5724f503e7a4adfa0c4;hpb=d82ed5d1b4a3af4d0a4782b809837e3b22d1211d;p=friendica.git diff --git a/mod/ostatus_subscribe.php b/mod/ostatus_subscribe.php index 04c8d7bde7..70a36559e4 100644 --- a/mod/ostatus_subscribe.php +++ b/mod/ostatus_subscribe.php @@ -1,9 +1,13 @@ = $total) { - $a->page['htmlhead'] = ''; - del_pconfig($uid, "ostatus", "legacy_friends"); - del_pconfig($uid, "ostatus", "legacy_contact"); + $a->page['htmlhead'] = ''; + PConfig::delete($uid, "ostatus", "legacy_friends"); + PConfig::delete($uid, "ostatus", "legacy_contact"); $o .= t("Done"); return $o; } @@ -61,9 +65,9 @@ function ostatus_subscribe_content(&$a) { $o .= "

".$counter."/".$total.": ".$url; - $data = probe_url($url); + $data = Probe::uri($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 { @@ -77,7 +81,7 @@ function ostatus_subscribe_content(&$a) { $o .= "

".t("Keep this window open until done.")."

"; - $a->page['htmlhead'] = ''; + $a->page['htmlhead'] = ''; return $o; }