mirror of
https://github.com/friendica/friendica
synced 2024-11-18 11:43:41 +00:00
819592c3bd
- Remove unused variables and parameter - Updated function documentation - Fix formatting - Add back uninitialized variables - Simplify nested conditions
16 lines
234 B
PHP
16 lines
234 B
PHP
<?php
|
|
|
|
use Friendica\App;
|
|
use Friendica\Network\Probe;
|
|
|
|
function acctlink_init()
|
|
{
|
|
if (x($_GET, 'addr')) {
|
|
$addr = trim($_GET['addr']);
|
|
$res = Probe::uri($addr);
|
|
if ($res['url']) {
|
|
goaway($res['url']);
|
|
killme();
|
|
}
|
|
}
|
|
}
|