mirror of
https://github.com/friendica/friendica
synced 2025-04-24 00:30:11 +00:00
Sensitive previews are now blurred
This commit is contained in:
parent
9b4ade4542
commit
0a6dff0618
3 changed files with 31 additions and 20 deletions
|
@ -166,7 +166,9 @@ class Photo extends BaseApi
|
|||
|
||||
$stamp = microtime(true);
|
||||
|
||||
$imgdata = MPhoto::getImageDataForPhoto($photo);
|
||||
if (empty($request['blur']) || empty($photo['blurhash'])) {
|
||||
$imgdata = MPhoto::getImageDataForPhoto($photo);
|
||||
}
|
||||
if (empty($imgdata) && empty($photo['blurhash'])) {
|
||||
throw new HTTPException\NotFoundException();
|
||||
} elseif (empty($imgdata) && !empty($photo['blurhash'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue