mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Bugfixing for CurlResult
This commit is contained in:
parent
ce2af45897
commit
2e8d9ba39b
9 changed files with 13 additions and 14 deletions
|
@ -89,10 +89,10 @@ function mastodoncustomemojis_fetch_custom_emojis_for_url($api_base_url)
|
|||
|
||||
$api_url = $api_base_url . '/api/v1/custom_emojis';
|
||||
|
||||
$ret = Network::fetchUrlFull($api_url);
|
||||
$fetchResult = Network::fetchUrlFull($api_url);
|
||||
|
||||
if ($ret['success']) {
|
||||
$emojis_array = json_decode($ret['body'], true);
|
||||
if ($fetchResult->isSuccess()) {
|
||||
$emojis_array = json_decode($fetchResult->getBody(), true);
|
||||
|
||||
if (is_array($emojis_array) && count($emojis_array)) {
|
||||
foreach ($emojis_array as $emoji) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue