fix regression in relation with recent photo changes

This commit is contained in:
Mario
2021-06-27 15:20:06 +00:00
parent d3d4dee36a
commit 3f6b6dfaf3
2 changed files with 7 additions and 7 deletions

View File

@@ -668,8 +668,8 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) {
$def_extension = '.jpg';
if($gis[2] === IMAGETYPE_PNG)
$def_extension = '.png';
if($gis[2] === IMAGETYPE_WEBP)
$def_extension = '.webp';
if($gis[2] === IMAGETYPE_WEBP)
$def_extension = '.webp';
}
// If we know it's a photo, over-ride the type in case the source system could not determine what it was