mirror of
https://github.com/friendica/friendica
synced 2025-04-23 06:30:11 +00:00
Replace "Probe::uri" with "Contact::getByURL"
This commit is contained in:
parent
c352af8eda
commit
d6bf7f2cda
7 changed files with 18 additions and 20 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue