friendica/mod/acctlink.php

18 lines
285 B
PHP
Raw Normal View History

2012-06-02 21:05:23 -04:00
<?php
use Friendica\App;
use Friendica\Network\Probe;
2012-06-02 21:05:23 -04:00
function acctlink_init(App $a) {
if(x($_GET,'addr')) {
2012-06-02 21:05:23 -04:00
$addr = trim($_GET['addr']);
$res = Probe::uri($addr);
2012-06-02 21:05:23 -04:00
//logger('acctlink: ' . print_r($res,true));
if($res['url']) {
2012-06-02 21:05:23 -04:00
goaway($res['url']);
killme();
}
}
}