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

darcs-hash:20080517195449-84dde-d08f3cad4fb79cdf81ef40f79aa30a29c9ddd9a7.gz
This commit is contained in:
Evan Prodromou 2008-05-17 15:54:49 -04:00
parent 466f0489c3
commit a0bdc80053
2 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class LogoutAction extends Action {
common_user_error(_t('Not logged in.')); common_user_error(_t('Not logged in.'));
} else { } else {
common_set_user(NULL); common_set_user(NULL);
common_redirect(common_local_url('main')); common_redirect(common_local_url('public'));
} }
} }
} }

View File

@ -35,12 +35,14 @@ class ShowstreamAction extends StreamAction {
if (!$user) { if (!$user) {
$this->no_such_user(); $this->no_such_user();
return;
} }
$profile = $user->getProfile(); $profile = $user->getProfile();
if (!$profile) { if (!$profile) {
common_server_error(_t('User record exists without profile.')); common_server_error(_t('User record exists without profile.'));
return;
} }
# Looks like we're good; show the header # Looks like we're good; show the header