Make Atom timelines in the API use Atom10feed

This commit is contained in:
Zach Copley
2010-02-11 13:54:40 -08:00
parent c8d5c8442f
commit c465f675d9
11 changed files with 308 additions and 98 deletions

View File

@@ -1321,4 +1321,22 @@ class ApiAction extends Action
}
}
function getSelfUri($action, $aargs)
{
parse_str($_SERVER['QUERY_STRING'], $params);
$pstring = '';
if (!empty($params)) {
unset($params['p']);
$pstring = http_build_query($params);
}
$uri = common_local_url($action, $aargs);
if (!empty($pstring)) {
$uri .= '?' . $pstring;
}
return $uri;
}
}