]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
allow / at end of group, user page
authorEvan Prodromou <evan@status.net>
Fri, 30 Sep 2011 02:59:18 +0000 (22:59 -0400)
committerEvan Prodromou <evan@status.net>
Fri, 30 Sep 2011 02:59:18 +0000 (22:59 -0400)
lib/router.php

index 09121c561c5d9d753425fc4ca4751b34a54ccb55..8798db89e0524748e2c0013414982c699aba2d78 100644 (file)
@@ -334,6 +334,10 @@ class Router
                         array('action' => 'showgroup'),
                         array('nickname' => Nickname::DISPLAY_FMT));
 
+            $m->connect('group/:nickname/',
+                        array('action' => 'showgroup'),
+                        array('nickname' => Nickname::DISPLAY_FMT));
+
             $m->connect('group/', array('action' => 'groups'));
             $m->connect('group', array('action' => 'groups'));
             $m->connect('groups/', array('action' => 'groups'));
@@ -1068,6 +1072,10 @@ class Router
                 $m->connect(':nickname',
                             array('action' => 'showstream'),
                             array('nickname' => Nickname::DISPLAY_FMT));
+
+                $m->connect(':nickname/',
+                            array('action' => 'showstream'),
+                            array('nickname' => Nickname::DISPLAY_FMT));
             }
 
             // AtomPub API