/**
* Upload an image via the API. Returns a shortened URL for the image
- * to the user.
+ * to the user. Apparently modelled after a former Twitpic API.
*
* @category API
* @package StatusNet
* Grab the file from the 'media' param, then store, and shorten
*
* @todo Upload throttle!
- *
- * @param array $args $_REQUEST data (unused)
- *
* @return void
*/
protected function handle()
*
* @param String $msg an error message
*/
- function clientError($msg)
+ function clientError($msg, $code=400, $format=null)
{
$this->initDocument();
$this->elementStart('rsp', array('stat' => 'fail'));