Add more BlurHash to avoid not being able to display some picture

This commit is contained in:
Michael 2022-12-11 09:56:30 +00:00
commit bf7df13855
9 changed files with 101 additions and 28 deletions

View file

@ -90,6 +90,8 @@ class Avatar
$filename = self::getFilename($contact['url']);
$timestamp = time();
$fields['blurhash'] = $image->getBlurHash();
$fields['photo'] = self::storeAvatarCache($image, $filename, Proxy::PIXEL_SMALL, $timestamp);
$fields['thumb'] = self::storeAvatarCache($image, $filename, Proxy::PIXEL_THUMB, $timestamp);
$fields['micro'] = self::storeAvatarCache($image, $filename, Proxy::PIXEL_MICRO, $timestamp);