Merge commit 'refs/merge-requests/8' of git://gitorious.org/statusnet/gnu-social into merge-requests/8

This commit is contained in:
Mikael Nordfeldth 2014-02-23 15:06:29 +01:00
commit 862a2dab3f

View File

@ -310,7 +310,7 @@ class TwitterOAuthClient extends OAuthClient
function statusesRetweet($id) function statusesRetweet($id)
{ {
$url = "http://api.twitter.com/1.1/statuses/retweet/$id.json"; $url = "https://api.twitter.com/1.1/statuses/retweet/$id.json";
$response = $this->oAuthPost($url); $response = $this->oAuthPost($url);
$status = json_decode($response); $status = json_decode($response);
return $status; return $status;
@ -326,7 +326,7 @@ class TwitterOAuthClient extends OAuthClient
function favoritesCreate($id) function favoritesCreate($id)
{ {
$url = "http://api.twitter.com/1.1/favorites/create.json"; $url = "https://api.twitter.com/1.1/favorites/create.json";
$params=array(); $params=array();
$params['id'] = $id; $params['id'] = $id;
$response = $this->oAuthPost($url, $params); $response = $this->oAuthPost($url, $params);
@ -344,7 +344,7 @@ class TwitterOAuthClient extends OAuthClient
function favoritesDestroy($id) function favoritesDestroy($id)
{ {
$url = "http://api.twitter.com/1.1/favorites/destroy.json"; $url = "https://api.twitter.com/1.1/favorites/destroy.json";
$params=array(); $params=array();
$params['id'] = $id; $params['id'] = $id;
$response = $this->oAuthPost($url,$params); $response = $this->oAuthPost($url,$params);
@ -362,7 +362,7 @@ class TwitterOAuthClient extends OAuthClient
function statusesDestroy($id) function statusesDestroy($id)
{ {
$url = "http://api.twitter.com/1.1/statuses/destroy/$id.json"; $url = "https://api.twitter.com/1.1/statuses/destroy/$id.json";
$response = $this->oAuthPost($url); $response = $this->oAuthPost($url);
$status = json_decode($response); $status = json_decode($response);
return $status; return $status;