]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
go to public timeline on logout and handle missing user more gracefully
authorEvan Prodromou <evan@prodromou.name>
Sat, 17 May 2008 19:54:49 +0000 (15:54 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sat, 17 May 2008 19:54:49 +0000 (15:54 -0400)
darcs-hash:20080517195449-84dde-d08f3cad4fb79cdf81ef40f79aa30a29c9ddd9a7.gz

actions/logout.php
actions/showstream.php

index b2f0628f219508f07fa7d826291b044621c6956e..053130b9f7a86e02311f51789ce40538cc18b916 100644 (file)
@@ -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'));
                }
        }
 }
index 45e155feab9d9a46c3b0fed33479b1a60de031b7..c9b35ee0bbb4bc297e0733ea4f9e7173ec944846 100644 (file)
@@ -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