* Update the current user's status.
*
* @param string $status The new status text.
- * @param string $replyTo If specified, *and* the text of the status contains
- * a mention of the author of the replied to status
- * (i.e. `@username`) this update will be "in reply to"
- * the specifed status message id.
* @param array $params Any additional parameters.
* <pre>
* in_reply_to_status_id - the status id this tweet is in response to.
switch ($action) {
case 'updateStatus':
- $result = $twitter->statuses->update(Horde_Util::getPost('statusText'), Horde_Util::getPost('inReplyTo', ''));
+ if ($inreplyTo = Horde_Util::getPost('inReplyTo')) {
+ $params = array('in_reply_to_status_id', $inreplyTo);
+ } else {
+ $params = array();
+ }
+ $result = $twitter->statuses->update(Horde_Util::getPost('statusText'), $params);
header('Content-Type: application/json');
echo $result;
exit;