summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--htaccess.sample1
-rw-r--r--lib/util.php6
2 files changed, 7 insertions, 0 deletions
diff --git a/htaccess.sample b/htaccess.sample
index 915ace4b6..2179c5800 100644
--- a/htaccess.sample
+++ b/htaccess.sample
@@ -15,6 +15,7 @@ RewriteRule ^main/login$ index.php?action=login [L,QSA]
RewriteRule ^main/logout$ index.php?action=logout [L,QSA]
RewriteRule ^main/register$ index.php?action=register [L,QSA]
RewriteRule ^main/openid$ index.php?action=openidlogin [L,QSA]
+RewriteRule ^main/remote$ index.php?action=remotesubscribe [L,QSA]
RewriteRule ^main/subscribe$ index.php?action=subscribe [L,QSA]
RewriteRule ^main/unsubscribe$ index.php?action=unsubscribe [L,QSA]
diff --git a/lib/util.php b/lib/util.php
index 9e1b1a8c9..8bd99c816 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -656,6 +656,12 @@ function common_fancy_url($action, $args=NULL) {
case 'subscribe':
case 'unsubscribe':
return common_path('main/'.$action);
+ case 'remotesubscribe':
+ if ($args && $args['nickname']) {
+ return common_path('main/remote?nickname=' . $args['nickname']);
+ } else {
+ return common_path('main/remote');
+ }
case 'openidlogin':
return common_path('main/openid');
case 'avatar':