]> git.mxchange.org Git - friendica.git/blobdiff - mod/acctlink.php
Ops, one more left ...
[friendica.git] / mod / acctlink.php
index 715f251fa3f9f4396f4776e41118b7b438a399cd..fb8cfd400f7939b1f095ab6c045ab89f7df48c22 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 
-require_once('include/Scrape.php');
+use Friendica\App;
+use Friendica\Network\Probe;
 
-function acctlink_init(App $a) {
-
-       if (x($_GET,'addr')) {
+function acctlink_init()
+{
+       if (x($_GET, 'addr')) {
                $addr = trim($_GET['addr']);
-               $res = probe_url($addr);
-               //logger('acctlink: ' . print_r($res,true));
+               $res = Probe::uri($addr);
                if ($res['url']) {
                        goaway($res['url']);
                        killme();