]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Proxy.php
Changes:
[friendica.git] / src / Module / Proxy.php
index 4d1e1c304b082e912ef54abe6d70756e5b96ceb6..0eb95d8a3fb1a6f2dd615227e8f29e3ac1e39030 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -85,7 +85,7 @@ class Proxy extends BaseModule
                // Fetch the content with the local user
                try {
                        $fetchResult = HTTPSignature::fetchRaw($request['url'], DI::userSession()->getLocalUserId(), [HttpClientOptions::ACCEPT_CONTENT => [HttpClientAccept::IMAGE], 'timeout' => 10]);
-                       $img_str = $fetchResult->getBody();
+                       $img_str = $fetchResult->getBodyString();
 
                        if (!$fetchResult->isSuccess() || empty($img_str)) {
                                Logger::notice('Error fetching image', ['image' => $request['url'], 'return' => $fetchResult->getReturnCode(), 'empty' => empty($img_str)]);