forked from GNUsocial/gnu-social
use correct redirect on logout of single-user site
This commit is contained in:
parent
fc3d52c120
commit
b80b0d6520
@ -73,9 +73,15 @@ class LogoutAction extends Action
|
||||
}
|
||||
Event::handle('EndLogout', array($this));
|
||||
|
||||
if (common_config('singleuser', 'enabled')) {
|
||||
$user = User::singleUser();
|
||||
common_redirect(common_local_url('showstream',
|
||||
array('nickname' => $user->nickname)));
|
||||
} else {
|
||||
common_redirect(common_local_url('public'), 303);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function logout()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user