GitHost.io will be shut down on June 1, 2019. At that point this instance will be unreachable and all data will be irrevocably deleted. More details at https://about.gitlab.com/gitlab-hosted/#githost-is-shutting-down-on-june-1st-2019

Commit a0bdc800 authored by Evan Prodromou's avatar Evan Prodromou

go to public timeline on logout and handle missing user more gracefully

darcs-hash:20080517195449-84dde-d08f3cad4fb79cdf81ef40f79aa30a29c9ddd9a7.gz
parent 466f0489
......@@ -26,7 +26,7 @@ class LogoutAction extends Action {
common_user_error(_t('Not logged in.'));
} else {
common_set_user(NULL);
common_redirect(common_local_url('main'));
common_redirect(common_local_url('public'));
}
}
}
......@@ -35,12 +35,14 @@ class ShowstreamAction extends StreamAction {
if (!$user) {
$this->no_such_user();
return;
}
$profile = $user->getProfile();
if (!$profile) {
common_server_error(_t('User record exists without profile.'));
return;
}
# Looks like we're good; show the header
......
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