mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
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:
parent
4dcd00cf4b
commit
7770317f1e
4 changed files with 69 additions and 6 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue