X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fostatus_subscribe.php;h=0104c3ca1b6cb51f39df2258208bffaa6576c592;hb=c81e83c5008da66a945b02ca035f6d364b827367;hp=a21436db49f32e9418d4657ad59da9b8979e688e;hpb=9330a6994c1b9aee49a482efe32e84ca1a944c9b;p=friendica.git diff --git a/mod/ostatus_subscribe.php b/mod/ostatus_subscribe.php index a21436db49..0104c3ca1b 100644 --- a/mod/ostatus_subscribe.php +++ b/mod/ostatus_subscribe.php @@ -1,12 +1,16 @@ = $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; } @@ -59,22 +66,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 = Contact::create($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; } -}