From: Michael Date: Tue, 24 May 2022 17:39:02 +0000 (+0000) Subject: Trim the rid X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0ff8ca8053af57321521dc41f46e40c8576632ab;p=friendica.git Trim the rid --- diff --git a/src/Model/Photo.php b/src/Model/Photo.php index 6537c41d1f..d9e6f7cade 100644 --- a/src/Model/Photo.php +++ b/src/Model/Photo.php @@ -704,10 +704,7 @@ class Photo } $image_uri = substr($image_uri, strrpos($image_uri, '/') + 1); $image_uri = substr($image_uri, 0, strpos($image_uri, '-')); - if (!strlen($image_uri)) { - return ''; - } - return $image_uri; + return trim($image_uri); } /**