]> git.mxchange.org Git - friendica-addons.git/commitdiff
Make "HTTPRequest::fetchUrlFull" dynamic
authornupplaPhil <admin+github@philipp.info>
Wed, 4 Mar 2020 21:19:59 +0000 (22:19 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 21 Jul 2020 07:29:22 +0000 (03:29 -0400)
mailstream/mailstream.php
mastodoncustomemojis/mastodoncustomemojis.php

index dbc9c4f08b75bf324349bce5e459a167c813d94c..4eaa5704c24d8e616733981dfc1266b43c7a340d 100644 (file)
@@ -169,7 +169,7 @@ function mailstream_do_images($a, &$item, &$attachments) {
                        continue;
                }
                $cookiejar = tempnam(get_temppath(), 'cookiejar-mailstream-');
-               $curlResult = HTTPRequest::fetchUrlFull($url, true, 0, '', $cookiejar);
+               $curlResult = DI::httpRequest()->fetchUrlFull($url, true, 0, '', $cookiejar);
                $attachments[$url] = [
                        'data' => $curlResult->getBody(),
                        'guid' => hash("crc32", $url),
index a0c06b97c56ab29eb82111bdc226e9bcf8fb9612..537cf46e383f20cb0a4b4b1d18c5753abd06e611 100644 (file)
@@ -90,7 +90,7 @@ function mastodoncustomemojis_fetch_custom_emojis_for_url($api_base_url)
 
        $api_url = $api_base_url . '/api/v1/custom_emojis';
 
-       $fetchResult = HTTPRequest::fetchUrlFull($api_url);
+       $fetchResult = DI::httpRequest()->fetchUrlFull($api_url);
 
        if ($fetchResult->isSuccess()) {
                $emojis_array = json_decode($fetchResult->getBody(), true);