]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Acctlink.php
Merge pull request #9517 from annando/no-duplicated
[friendica.git] / src / Module / Acctlink.php
index f80ea4c73c9d32e353fa9a67ac57023a096c874a..bdcc3cf6ff08c17cb92356d68b49ceb126b8f602 100644 (file)
@@ -22,8 +22,8 @@
 namespace Friendica\Module;
 
 use Friendica\BaseModule;
-use Friendica\Network\Probe;
 use Friendica\Core\System;
+use Friendica\Model\Contact;
 
 /**
  * Redirects to another URL based on the parameter 'addr'
@@ -35,9 +35,9 @@ class Acctlink extends BaseModule
                $addr = trim($_GET['addr'] ?? '');
 
                if ($addr) {
-                       $url = Probe::uri($addr)['url'] ?? '';
+                       $url = Contact::getByURL($addr)['url'] ?? '';
                        if ($url) {
-                               System::externalRedirect($url);
+                               System::externalRedirect($url['url']);
                                exit();
                        }
                }