git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit b80b0d65 authored by Evan Prodromou's avatar Evan Prodromou

use correct redirect on logout of single-user site

parent fc3d52c1
......@@ -73,7 +73,13 @@ class LogoutAction extends Action
}
Event::handle('EndLogout', array($this));
common_redirect(common_local_url('public'), 303);
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);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment