summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/util.php b/lib/util.php
index bf96be264..68644e916 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -1011,8 +1011,6 @@ function common_fancy_url($action, $args=NULL) {
case 'xrds':
case 'foaf':
return common_path($args['nickname'].'/'.$action);
- case 'subscriptions':
- case 'subscribers':
case 'all':
case 'replies':
case 'inbox':
@@ -1022,6 +1020,16 @@ function common_fancy_url($action, $args=NULL) {
} else {
return common_path($args['nickname'].'/'.$action);
}
+ case 'subscriptions':
+ case 'subscribers':
+ $nickname = $args['nickname'];
+ unset($args['nickname']);
+ $params = http_build_query($args);
+ if ($params) {
+ return common_path($nickname.'/'.$action . '?' . $params);
+ } else {
+ return common_path($nickname.'/'.$action);
+ }
case 'allrss':
return common_path($args['nickname'].'/all/rss');
case 'repliesrss':