consolidate/simplify
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 30 Jun 2010 21:28:46 +0000 (17:28 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 1 Jul 2010 00:11:39 +0000 (20:11 -0400)
framework/Service_Twitter/lib/Horde/Service/Twitter/Statuses.php

index c905b00..881e394 100644 (file)
@@ -71,16 +71,16 @@ class Horde_Service_Twitter_Statuses
      *                        (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.
+     *   </pre>
      *
      * @return string
      */
-    public function update($status, $replyTo = '', $params = array())
+    public function update($status, $params = array())
     {
         $url = $this->_endpoint . 'update.' . $this->_format;
-        $params = array('status' => $status);
-        if (!empty($replyTo)) {
-            $params['in_reply_to_status_id'] = $replyTo;
-        }
+        $params['status'] = $status;
 
         return $this->_twitter->request->post($url, $params);
     }