default page on login changed to matrix (/network)

This commit is contained in:
friendica 2013-05-18 01:42:04 -07:00
parent 367b21f886
commit 257b1db08d

View File

@ -8,8 +8,12 @@ function home_init(&$a) {
$channel = $a->get_channel();
if(local_user() && $channel && $channel['xchan_url'])
goaway( $channel['xchan_url']);
if(local_user() && $channel && $channel['xchan_url']) {
$dest = get_pconfig(local_user(),'system','startpage');
if(! $dest)
$dest = z_root() . '/network';
goaway($dest);
}
if(get_account_id()) {
goaway('new_channel');