mirror of
https://github.com/friendica/friendica
synced 2025-04-27 01:10:14 +00:00
Fix PR 14591 - improve blurhash creation
This commit is contained in:
parent
9a8554e40a
commit
17c335238f
6 changed files with 20 additions and 19 deletions
|
@ -2320,7 +2320,7 @@ class Contact
|
|||
if ($fetchResult->isSuccess() && !empty($img_str)) {
|
||||
$image = new Image($img_str, $fetchResult->getContentType(), $avatar);
|
||||
if ($image->isValid()) {
|
||||
$update_fields['blurhash'] = $image->getBlurHash();
|
||||
$update_fields['blurhash'] = $image->getBlurHash($img_str);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue