Add support for Atom entry when posting status
This commit is contained in:
parent
8b8e2825e3
commit
132b932ff3
@ -46,7 +46,7 @@
|
||||
/api/statuses/update.:format
|
||||
|
||||
@par Formats (:format)
|
||||
xml, json
|
||||
xml, json, atom
|
||||
|
||||
@par HTTP Method(s)
|
||||
POST
|
||||
@ -339,6 +339,8 @@ class ApiStatusesUpdateAction extends ApiAuthAction
|
||||
$this->showSingleXmlStatus($this->notice);
|
||||
} elseif ($this->format == 'json') {
|
||||
$this->show_single_json_status($this->notice);
|
||||
} elseif ($this->format == 'atom') {
|
||||
$this->showSingleAtomStatus($this->notice);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -420,7 +420,7 @@ class Router
|
||||
|
||||
$m->connect('api/statuses/update.:format',
|
||||
array('action' => 'ApiStatusesUpdate',
|
||||
'format' => '(xml|json)'));
|
||||
'format' => '(xml|json|atom)'));
|
||||
|
||||
$m->connect('api/statuses/destroy/:id.:format',
|
||||
array('action' => 'ApiStatusesDestroy',
|
||||
|
Loading…
Reference in New Issue
Block a user