Fix calls for pictures without blurhash

This commit is contained in:
Michael 2022-12-04 15:14:43 +00:00
parent cfe5101b9b
commit 1c8690a872
1 changed files with 1 additions and 1 deletions

View File

@ -353,7 +353,7 @@ class Photo
* @return array * @return array
* @throws \Exception * @throws \Exception
*/ */
public static function createPhotoForExternalResource(string $url, int $uid = 0, string $mimetype = '', string $blurhash = '', int $width = 0, int $height = 0): array public static function createPhotoForExternalResource(string $url, int $uid = 0, string $mimetype = '', string $blurhash = null, int $width = null, int $height = null): array
{ {
if (empty($mimetype)) { if (empty($mimetype)) {
$mimetype = Images::guessTypeByExtension($url); $mimetype = Images::guessTypeByExtension($url);