]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use correct redirect on logout of single-user site
authorEvan Prodromou <evan@status.net>
Sat, 17 Sep 2011 19:08:04 +0000 (15:08 -0400)
committerEvan Prodromou <evan@status.net>
Sat, 17 Sep 2011 19:08:04 +0000 (15:08 -0400)
actions/logout.php

index 567d808cd1f7e38863f77d1087dc8cc68758f7b9..4e51271d43c95d0990b8e1b2f29a14b4019ee20f 100644 (file)
@@ -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);
+            }
         }
     }