allow / at end of group, user page

This commit is contained in:
Evan Prodromou 2011-09-29 22:59:18 -04:00
parent 9dfa406493
commit fb406a81e2

View File

@ -334,6 +334,10 @@ class Router
array('action' => 'showgroup'), array('action' => 'showgroup'),
array('nickname' => Nickname::DISPLAY_FMT)); 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('group', array('action' => 'groups')); $m->connect('group', array('action' => 'groups'));
$m->connect('groups/', array('action' => 'groups')); $m->connect('groups/', array('action' => 'groups'));
@ -1068,6 +1072,10 @@ class Router
$m->connect(':nickname', $m->connect(':nickname',
array('action' => 'showstream'), array('action' => 'showstream'),
array('nickname' => Nickname::DISPLAY_FMT)); array('nickname' => Nickname::DISPLAY_FMT));
$m->connect(':nickname/',
array('action' => 'showstream'),
array('nickname' => Nickname::DISPLAY_FMT));
} }
// AtomPub API // AtomPub API