3 namespace Friendica\Module;
5 use Friendica\BaseModule;
6 use Friendica\Network\Probe;
7 use Friendica\Core\System;
10 * Redirects to another URL based on the parameter 'addr'
12 class Acctlink extends BaseModule
14 public static function content(array $parameters = [])
16 $addr = trim($_GET['addr'] ?? '');
19 $url = Probe::uri($addr)['url'] ?? '';
22 System::externalRedirect($url);