home_init hook

This commit is contained in:
friendica 2011-12-15 01:08:19 -08:00
parent 001e402311
commit cb2e68c88e
2 changed files with 12 additions and 13 deletions

View file

@ -3,6 +3,8 @@
if(! function_exists('home_init')) {
function home_init(&$a) {
call_hooks('home_init',array());
if(local_user() && ($a->user['nickname']))
goaway( $a->get_baseurl() . "/profile/" . $a->user['nickname'] );