]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add route for new message to user.
authorAdrian Lang <mail@adrianlang.de>
Wed, 25 Feb 2009 15:59:32 +0000 (16:59 +0100)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 27 Feb 2009 23:45:24 +0000 (15:45 -0800)
lib/router.php

index 95ce77e5efb0cd6cf1e595dd74e8e1c6663e1495..4b70c01505ec3163454db89f01ab8a498a270a64 100644 (file)
@@ -154,6 +154,7 @@ class Router
                     array('notice' => '[0-9]+'));
 
         $m->connect('message/new', array('action' => 'newmessage'));
+        $m->connect('message/new?to=:to', array('action' => 'newmessage'), array('to' => '[A-Za-z0-9_-]'));
         $m->connect('message/:message',
                     array('action' => 'showmessage'),
                     array('message' => '[0-9]+'));