]> git.mxchange.org Git - friendica.git/blobdiff - mod/ostatus_subscribe.php
wrapping up 2019.12
[friendica.git] / mod / ostatus_subscribe.php
index 5670820623449c1e65f2c77da79c09b3e32b71ed..7f9725b85359ca7163078ef1a0f9c03610c397f6 100644 (file)
@@ -24,7 +24,7 @@ function ostatus_subscribe_content(App $a)
 
        $uid = local_user();
 
-       $a = get_app();
+       $a = \get_app();
 
        $counter = intval($_REQUEST['counter']);
 
@@ -77,8 +77,8 @@ function ostatus_subscribe_content(App $a)
 
        $o .= '<p>' . $counter . '/' . $total . ': ' . $url;
 
-       $curlResult = Probe::uri($url);
-       if ($curlResult['network'] == Protocol::OSTATUS) {
+       $probed = Probe::uri($url);
+       if ($probed['network'] == Protocol::OSTATUS) {
                $result = Contact::createFromProbe($uid, $url, true, Protocol::OSTATUS);
                if ($result['success']) {
                        $o .= ' - ' . L10n::t('success');