Preparations for a more visible reshare when exporting to twitter, statusnet or facebook.

The oauth-parts are some experimental stuff for the statusnet API - but they don't hurt.
This commit is contained in:
Michael Vogel 2013-07-28 20:38:48 +02:00
parent 4dcd00cf4b
commit 7770317f1e
4 changed files with 69 additions and 6 deletions

View file

@ -184,6 +184,8 @@ class TwitterOAuth {
switch ($method) {
case 'GET':
return $this->http($request->to_url(), 'GET');
case 'UPLOAD':
return $this->http($request->get_normalized_http_url(), 'POST', $request->to_postdata(true));
default:
return $this->http($request->get_normalized_http_url(), $method, $request->to_postdata());
}