Bladeren bron

ZF-7122 and ZF-7087: Fix the Twitter Service for the Twitpocalypse

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@16306 44c647ce-9c0f-0410-b52a-842ac1e357ba
sidhighwind 16 jaren geleden
bovenliggende
commit
9934767bae
2 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  1. 3 3
      library/Zend/Service/Twitter.php
  2. 1 1
      library/Zend/Service/Twitter/Search.php

+ 3 - 3
library/Zend/Service/Twitter.php

@@ -431,7 +431,7 @@ class Zend_Service_Twitter extends Zend_Rest_Client
     public function statusDestroy($id)
     {
         $this->_init();
-        $path = '/statuses/destroy/' . (int) $id . '.xml';
+        $path = '/statuses/destroy/' . $id . '.xml';
 
         $response = $this->restPost($path);
         return new Zend_Rest_Client_Result($response->getBody());
@@ -757,7 +757,7 @@ class Zend_Service_Twitter extends Zend_Rest_Client
     public function favoriteCreate($id)
     {
         $this->_init();
-        $path = '/favorites/create/' . (int) $id . '.xml';
+        $path = '/favorites/create/' . $id . '.xml';
 
         $response = $this->restPost($path);
         return new Zend_Rest_Client_Result($response->getBody());
@@ -772,7 +772,7 @@ class Zend_Service_Twitter extends Zend_Rest_Client
     public function favoriteDestroy($id)
     {
         $this->_init();
-        $path = '/favorites/destroy/' . (int) $id . '.xml';
+        $path = '/favorites/destroy/' . $id . '.xml';
 
         $response = $this->restPost($path);
         return new Zend_Rest_Client_Result($response->getBody());

+ 1 - 1
library/Zend/Service/Twitter/Search.php

@@ -140,12 +140,12 @@ class Zend_Service_Twitter_Search extends Zend_Http_Client
             switch($key) {
                 case 'geocode':
                 case 'lang':
+				case 'since_id':
                     $_query[$key] = $param;
                     break;
                 case 'rpp':
                     $_query[$key] = (intval($param) > 100) ? 100 : intval($param);
                     break;
-                case 'since_id':
                 case 'page':
                     $_query[$key] = intval($param);
                     break;