]> git.mxchange.org Git - friendica-addons.git/commitdiff
Tumblr: Fixed token exchange
authorMichael <heluecht@pirati.ca>
Sat, 24 Feb 2024 08:28:34 +0000 (08:28 +0000)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 27 Feb 2024 00:34:22 +0000 (01:34 +0100)
tumblr/tumblr.php

index d6508ff87ca1095f3fcb17ce95a3904d3285c48b..12e9e5e033387bf971bbacb8ae021d3e8050c872 100644 (file)
@@ -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;