X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fostatus_subscribe.php;h=0104c3ca1b6cb51f39df2258208bffaa6576c592;hb=c81e83c5008da66a945b02ca035f6d364b827367;hp=2e09bfc0d6eacdbe93601457fa8db76871ec5fde;hpb=e1f366164509fc8217f9d0cf21d7475f6d71b73a;p=friendica.git diff --git a/mod/ostatus_subscribe.php b/mod/ostatus_subscribe.php index 2e09bfc0d6..0104c3ca1b 100644 --- a/mod/ostatus_subscribe.php +++ b/mod/ostatus_subscribe.php @@ -1,11 +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; } @@ -58,21 +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; }