]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
More routes.
authorAdrian Lang <mail@adrianlang.de>
Sun, 22 Feb 2009 12:31:50 +0000 (13:31 +0100)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 27 Feb 2009 23:41:36 +0000 (15:41 -0800)
lib/router.php

index e5b8e7d23639471502f294f5eff36484a7efc8a7..f70b67f383feadd9baa17bf73085bdb74cf48f6c 100644 (file)
@@ -133,6 +133,7 @@ class Router
 
         foreach (array('group', 'people', 'notice') as $s) {
             $m->connect('search/'.$s, array('action' => $s.'search'));
+            $m->connect('search/'.$s.'?q=:q', array('action' => $s.'search'), array('q' => '.+'));
         }
 
         $m->connect('search/notice/rss', array('action' => 'noticesearchrss'));
@@ -140,6 +141,9 @@ class Router
         // notice
 
         $m->connect('notice/new', array('action' => 'newnotice'));
+        $m->connect('notice/new?replyto=:replyto',
+                    array('action' => 'newnotice'),
+                    array('replyto' => '[A-Za-z0-9_-]+'));
         $m->connect('notice/:notice',
                     array('action' => 'shownotice'),
                     array('notice' => '[0-9]+'));