mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 00:03:45 +00:00
Merge pull request 'Twitter: Fix error after posting' (#1458) from heluecht/friendica-addons:twitter-fix into develop
Reviewed-on: https://git.friendi.ca/friendica/friendica-addons/pulls/1458
This commit is contained in:
commit
b05a95cc45
1 changed files with 2 additions and 2 deletions
|
@ -362,7 +362,7 @@ function twitter_post(int $uid, string $url, string $type, array $data): stdClas
|
|||
]);
|
||||
|
||||
$response = $client->post($url, ['auth' => 'oauth', $type => $data]);
|
||||
$body = $response->getBodyString()->getContents();
|
||||
$body = $response->getBody()->getContents();
|
||||
|
||||
$status = [
|
||||
'code' => $response->getStatusCode(),
|
||||
|
@ -399,7 +399,7 @@ function twitter_test_connection(int $uid)
|
|||
$status = [
|
||||
'code' => $response->getStatusCode(),
|
||||
'reason' => $response->getReasonPhrase(),
|
||||
'content' => $response->getBodyString()->getContents()
|
||||
'content' => $response->getBody()->getContents()
|
||||
];
|
||||
DI::pConfig()->set(1, 'twitter', 'last_status', $status);
|
||||
Logger::info('Test successful', ['uid' => $uid]);
|
||||
|
|
Loading…
Reference in a new issue