mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-04 18:02:58 +00:00
Merge pull request 'Tumblr: Fixed token exchange' (#1468) from heluecht/friendica-addons:Tumblr--Fixed-token-exchange into 2024.03-rc
Reviewed-on: https://git.friendi.ca/friendica/friendica-addons/pulls/1468
This commit is contained in:
commit
bdc27184fc
1 changed files with 1 additions and 1 deletions
|
@ -1479,7 +1479,7 @@ function tumblr_exchange_token(int $uid): stdClass
|
|||
]);
|
||||
|
||||
$response = $client->post('oauth2/exchange', ['auth' => 'oauth']);
|
||||
return json_decode($response->getBodyString()->getContents());
|
||||
return json_decode($response->getBody()->getContents());
|
||||
} catch (RequestException $exception) {
|
||||
Logger::notice('Exchange failed', ['code' => $exception->getCode(), 'message' => $exception->getMessage()]);
|
||||
return new stdClass;
|
||||
|
|
Loading…
Reference in a new issue