Tumblr: Fixed token exchange

pull/1469/head
Michael 2024-02-24 08:28:34 +00:00 committed by Hypolite Petovan
parent de784bdc95
commit 346e22c5f5
1 changed files with 1 additions and 1 deletions

View File

@ -1479,7 +1479,7 @@ function tumblr_exchange_token(int $uid): stdClass
]); ]);
$response = $client->post('oauth2/exchange', ['auth' => 'oauth']); $response = $client->post('oauth2/exchange', ['auth' => 'oauth']);
return json_decode($response->getBodyString()->getContents()); return json_decode($response->getBody()->getContents());
} catch (RequestException $exception) { } catch (RequestException $exception) {
Logger::notice('Exchange failed', ['code' => $exception->getCode(), 'message' => $exception->getMessage()]); Logger::notice('Exchange failed', ['code' => $exception->getCode(), 'message' => $exception->getMessage()]);
return new stdClass; return new stdClass;