Rename "fetchUrl" and "fetchUrlFull" to "fetch" and "fetchFull"
This commit is contained in:
committed by
Hypolite Petovan
parent
72c24efe5b
commit
19b2c8d833
@@ -15,7 +15,6 @@ use Friendica\Core\Cache\Duration;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\DI;
|
||||
use Friendica\Network\HTTPRequest;
|
||||
use Friendica\Util\Proxy as ProxyUtils;
|
||||
|
||||
function mastodoncustomemojis_install()
|
||||
@@ -90,7 +89,7 @@ function mastodoncustomemojis_fetch_custom_emojis_for_url($api_base_url)
|
||||
|
||||
$api_url = $api_base_url . '/api/v1/custom_emojis';
|
||||
|
||||
$fetchResult = DI::httpRequest()->fetchUrlFull($api_url);
|
||||
$fetchResult = DI::httpRequest()->fetchFull($api_url);
|
||||
|
||||
if ($fetchResult->isSuccess()) {
|
||||
$emojis_array = json_decode($fetchResult->getBody(), true);
|
||||
|
||||
Reference in New Issue
Block a user