mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-04-25 08:10:13 +00:00
[various] Rename ICanHandleHttpResponses->getBody to getBodyString
- Depends on https://github.com/friendica/friendica/pull/13826
This commit is contained in:
parent
4dedd24320
commit
13fd713b66
13 changed files with 26 additions and 26 deletions
|
@ -126,7 +126,7 @@ function discourse_fetch_post($host, $topic, $pid)
|
|||
return false;
|
||||
}
|
||||
|
||||
$raw = $curlResult->getBody();
|
||||
$raw = $curlResult->getBodyString();
|
||||
$data = json_decode($raw, true);
|
||||
$posts = $data['post_stream']['posts'];
|
||||
foreach($posts as $post) {
|
||||
|
@ -162,7 +162,7 @@ function discourse_fetch_post_from_api(&$message, $post, $host)
|
|||
return false;
|
||||
}
|
||||
|
||||
$raw = $curlResult->getBody();
|
||||
$raw = $curlResult->getBodyString();
|
||||
$data = json_decode($raw, true);
|
||||
if (empty($data)) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue