]> git.mxchange.org Git - friendica-addons.git/commitdiff
Remove $binary flag for HTTPRequest::get(), HTTPRequest::fetch(), HTTPRequest::fetchA...
authorPhilipp <admin@philipp.info>
Sat, 10 Oct 2020 19:07:17 +0000 (21:07 +0200)
committerPhilipp <admin@philipp.info>
Sat, 10 Oct 2020 19:29:27 +0000 (21:29 +0200)
mailstream/mailstream.php
pumpio/pumpio.php
statusnet/statusnet.php
twitter/twitter.php

index 23aed60f9c362db6bf894ed337b9f1937a2d2e97..9631a11ab5f3338edee71d193524b552b9e63e3c 100644 (file)
@@ -155,7 +155,7 @@ function mailstream_do_images($a, &$item, &$attachments) {
                        continue;
                }
                $cookiejar = tempnam(get_temppath(), 'cookiejar-mailstream-');
-               $curlResult = DI::httpRequest()->fetchFull($url, true, 0, '', $cookiejar);
+               $curlResult = DI::httpRequest()->fetchFull($url, 0, '', $cookiejar);
                $attachments[$url] = [
                        'data' => $curlResult->getBody(),
                        'guid' => hash("crc32", $url),
index cea197178cc8abbf275d2ff9c30605ce8aaf8ff3..cd44b682e6ddf5e760cd65ade8e4ed152cee7252 100644 (file)
@@ -1590,7 +1590,7 @@ function pumpio_fetchallcomments(App $a, $uid, $id)
 
 function pumpio_reachable($url)
 {
-       return DI::httpRequest()->get($url, false, ['timeout' => 10])->isSuccess();
+       return DI::httpRequest()->get($url, ['timeout' => 10])->isSuccess();
 }
 
 /*
index 0ab711cad3dac4ec41c71a9d31a2e7ac9514f95c..05853025a5b343fb42ad29a2627bac2ce2c1a835 100644 (file)
@@ -1453,7 +1453,7 @@ function statusnet_convertmsg(App $a, $body)
                        } elseif ($oembed_data->type != "link") {
                                $body = str_replace($search, "[url=" . $expanded_url . "]" . $expanded_url . "[/url]", $body);
                        } else {
-                               $img_str = DI::httpRequest()->fetch($expanded_url, true, 4);
+                               $img_str = DI::httpRequest()->fetch($expanded_url, 4);
 
                                $tempfile = tempnam(get_temppath(), "cache");
                                file_put_contents($tempfile, $img_str);
index 6f3978f25134bed40ce4f6a77535670c46cc487e..d04f3a552af8c2facde1b926fb120496b7e1e7eb 100644 (file)
@@ -1315,7 +1315,7 @@ function twitter_expand_entities($body, stdClass $status, $picture)
                        } elseif ($oembed_data->type != 'link') {
                                $replace = '[url=' . $expanded_url . ']' . $url->display_url . '[/url]';
                        } else {
-                               $img_str = DI::httpRequest()->fetch($final_url, true, 4);
+                               $img_str = DI::httpRequest()->fetch($final_url, 4);
 
                                $tempfile = tempnam(get_temppath(), 'cache');
                                file_put_contents($tempfile, $img_str);