X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fostatus_subscribe.php;h=70a36559e4483edf0ed4ca71e11619331f0fb870;hb=0b5f7da270bcaa679cb684dbbbbe40781f0b49c6;hp=6cca0bf67942537b75020a43008623e678cb734b;hpb=cf86162a08a71435865803b40dd283fc0b83427d;p=friendica.git diff --git a/mod/ostatus_subscribe.php b/mod/ostatus_subscribe.php index 6cca0bf679..70a36559e4 100644 --- a/mod/ostatus_subscribe.php +++ b/mod/ostatus_subscribe.php @@ -1,11 +1,15 @@ = $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; } @@ -58,21 +65,23 @@ 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); - if ($result["success"]) + $result = new_contact($uid, $url, true, NETWORK_OSTATUS); + if ($result["success"]) { $o .= " - ".t("success"); - else + } else { $o .= " - ".t("failed"); - } else + } + } else { $o .= " - ".t("ignored"); + } $o .= "
"; $o .= "".t("Keep this window open until done.")."
"; - $a->page['htmlhead'] = ''; + $a->page['htmlhead'] = ''; return $o; }