]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add all params to subscribers
authorEvan Prodromou <evan@prodromou.name>
Thu, 20 Nov 2008 14:43:00 +0000 (09:43 -0500)
committerEvan Prodromou <evan@prodromou.name>
Thu, 20 Nov 2008 14:43:00 +0000 (09:43 -0500)
darcs-hash:20081120144300-84dde-bb02bac8053dacb470eeb357cdd43007c361cc9a.gz

lib/util.php

index bf96be264dca1ab14f8ef6b9989b116cc1f08e41..68644e9164c650501ec4f1beeb2276062e693fc2 100644 (file)
@@ -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':