]> git.mxchange.org Git - friendica.git/commitdiff
Fix blurred images
authorMichael <heluecht@pirati.ca>
Mon, 31 Mar 2025 20:38:37 +0000 (20:38 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 31 Mar 2025 20:38:37 +0000 (20:38 +0000)
src/Module/Photo.php

index 861e0b936acf05b1fd616dbdefd25f5193560dca..8faef5aa6d84a09cbe6754fd4b5f4c2b68e16ef7 100644 (file)
@@ -348,6 +348,8 @@ class Photo extends BaseApi
                                        }
                                } elseif (!empty($contact['avatar'])) {
                                        $url = $contact['avatar'];
+                               } else {
+                                       $url = '';
                                }
 
                                // If it is a local link, we save resources by just redirecting to it.
@@ -389,8 +391,6 @@ class Photo extends BaseApi
                                        }
                                }
 
-                               $url = '';
-
                                if (empty($mimetext) && !empty($contact['blurhash'])) {
                                        $image = new Image('', image_type_to_mime_type(IMAGETYPE_WEBP));
                                        $image->getFromBlurHash($contact['blurhash'], $customsize, $customsize);