From fbafd92f7f7b96b215b98f30de9a1ccbdb3479be Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 25 Sep 2012 17:57:20 -0700 Subject: moving a lot of structure around. 'entity' is now 'channel' --- mod/home.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mod/home.php') diff --git a/mod/home.php b/mod/home.php index b96e3f29f..a49ce567e 100644 --- a/mod/home.php +++ b/mod/home.php @@ -6,8 +6,10 @@ function home_init(&$a) { $ret = array(); call_hooks('home_init',$ret); - if(local_user() && ($a->identity['entity_address'])) - goaway( $a->get_baseurl() . '/profile/' . $a->identity['entity_address']); + $channel = $a->get_channel(); + + if(local_user() && $channel && $channel['channel_address'])) + goaway( $a->get_baseurl() . '/profile/' . $channel['channel_address']); }} -- cgit v1.2.3