mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Fix blurred images
This commit is contained in:
parent
5c1b5bae61
commit
6cab9c010d
1 changed files with 2 additions and 2 deletions
|
@ -348,6 +348,8 @@ class Photo extends BaseApi
|
||||||
}
|
}
|
||||||
} elseif (!empty($contact['avatar'])) {
|
} elseif (!empty($contact['avatar'])) {
|
||||||
$url = $contact['avatar'];
|
$url = $contact['avatar'];
|
||||||
|
} else {
|
||||||
|
$url = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
// If it is a local link, we save resources by just redirecting to it.
|
// 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'])) {
|
if (empty($mimetext) && !empty($contact['blurhash'])) {
|
||||||
$image = new Image('', image_type_to_mime_type(IMAGETYPE_WEBP));
|
$image = new Image('', image_type_to_mime_type(IMAGETYPE_WEBP));
|
||||||
$image->getFromBlurHash($contact['blurhash'], $customsize, $customsize);
|
$image->getFromBlurHash($contact['blurhash'], $customsize, $customsize);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue