Tumblr: Fixed token exchange #1468

Merged
MrPetovan merged 1 commit from heluecht/friendica-addons:Tumblr--Fixed-token-exchange into 2024.03-rc 2024-02-27 01:34:22 +01:00

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;