forked from GNUsocial/gnu-social
add all params to subscribers
darcs-hash:20081120144300-84dde-bb02bac8053dacb470eeb357cdd43007c361cc9a.gz
This commit is contained in:
parent
9da1bce940
commit
49bb4a7b84
12
lib/util.php
12
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':
|
||||
|
Loading…
Reference in New Issue
Block a user