From 681d19a3bca8e0108071d86f9fbc405525479ad5 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 9 May 2022 06:31:09 +0000 Subject: [PATCH] Standards and renamed class --- src/Contact/{Contact.php => Avatar.php} | 1 + 1 file changed, 1 insertion(+) rename src/Contact/{Contact.php => Avatar.php} (99%) diff --git a/src/Contact/Contact.php b/src/Contact/Avatar.php similarity index 99% rename from src/Contact/Contact.php rename to src/Contact/Avatar.php index d452096e40..f4e5b71afe 100644 --- a/src/Contact/Contact.php +++ b/src/Contact/Avatar.php @@ -76,6 +76,7 @@ class Avatar substr($guid, 9, 2) .'/' . substr($guid, 11, 2) . '/' . substr($guid, 13, 4). '/' . substr($guid, 18) . '-'; $fetchResult = HTTPSignature::fetchRaw($avatar, 0, [HttpClientOptions::ACCEPT_CONTENT => [HttpClientAccept::IMAGE]]); + $img_str = $fetchResult->getBody(); if (empty($img_str)) { Logger::debug('Avatar is invalid', ['avatar' => $avatar]); -- 2.39.5