From: Michael Date: Mon, 19 Jul 2021 06:19:13 +0000 (+0000) Subject: Simplyfied picture fetching X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fa00a4ee32a693459c0d000576afada7523e79d1;p=friendica.git Simplyfied picture fetching --- diff --git a/src/Util/Images.php b/src/Util/Images.php index 3b07aee2fc..dd4848606b 100644 --- a/src/Util/Images.php +++ b/src/Util/Images.php @@ -185,7 +185,7 @@ class Images } if (Network::isLocalLink($url) && ($data = Photo::getResourceData($url))) { - $photo = Photo::getPhoto($data['guid'], $data['scale']); + $photo = Photo::selectFirst([], ['resource-id' => $data['guid'], 'scale' => $data['scale']]); if (!empty($photo)) { $img_str = Photo::getImageDataForPhoto($photo); }