]> git.mxchange.org Git - friendica.git/blobdiff - mod/acctlink.php
Ops, one more left ...
[friendica.git] / mod / acctlink.php
index bb59d7b94f0feccaaad105f576d0b90a2d22eab9..fb8cfd400f7939b1f095ab6c045ab89f7df48c22 100644 (file)
@@ -1,16 +1,14 @@
 <?php
 
 use Friendica\App;
+use Friendica\Network\Probe;
 
-require_once('include/Scrape.php');
-
-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));
-               if($res['url']) {
+               $res = Probe::uri($addr);
+               if ($res['url']) {
                        goaway($res['url']);
                        killme();
                }