]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Proxy.php
New user account type "Channel Relay"
[friendica.git] / src / Module / Proxy.php
index a4a140e47c0e73263645fed727f78e4793f4cfec..0eb95d8a3fb1a6f2dd615227e8f29e3ac1e39030 100644 (file)
@@ -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)]);