From: Evan Prodromou Date: Fri, 30 Sep 2011 02:59:18 +0000 (-0400) Subject: allow / at end of group, user page X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fb406a81e2c2ab6c7a09a8ff009a692844f46ac5;p=quix0rs-gnu-social.git allow / at end of group, user page --- diff --git a/lib/router.php b/lib/router.php index 09121c561c..8798db89e0 100644 --- a/lib/router.php +++ b/lib/router.php @@ -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