]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Route for remote subscribe link on profile page.
authorAdrian Lang <mail@adrianlang.de>
Sun, 22 Feb 2009 13:27:09 +0000 (14:27 +0100)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 27 Feb 2009 23:43:54 +0000 (15:43 -0800)
lib/router.php

index f70b67f383feadd9baa17bf73085bdb74cf48f6c..95ce77e5efb0cd6cf1e595dd74e8e1c6663e1495 100644 (file)
@@ -116,6 +116,7 @@ class Router
 
         $m->connect('main/openid', array('action' => 'openidlogin'));
         $m->connect('main/remote', array('action' => 'remotesubscribe'));
+        $m->connect('main/remote?nickname=:nickname', array('action' => 'remotesubscribe'), array('nickname' => '[A-Za-z0-9_-]+'));
 
         foreach (array('requesttoken', 'accesstoken', 'userauthorization',
                     'postnotice', 'updateprofile', 'finishremotesubscribe') as $action) {