From 5345bb7c0cf1d797a9e2f62bb945a0d623339a28 Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Fri, 25 Dec 2020 22:36:52 +0000 Subject: [PATCH] remove thumbwidth check not processong for audio some audio files will upload with a VIDEO stream of the album art and not get given dimensions OR a waveform audio thumbnail, causing content-jumping because hasThumbs is true but there is no geometry.thumb* --- models/forms/makepost.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/forms/makepost.js b/models/forms/makepost.js index e6bca830..f2684fe9 100644 --- a/models/forms/makepost.js +++ b/models/forms/makepost.js @@ -355,7 +355,7 @@ ${res.locals.numFiles > 0 ? req.files.file.map(f => f.name+'|'+(f.phash || '')). } } - if (processedFile.hasThumb === true && type !== 'audio') { + if (processedFile.hasThumb === true) { if (processedFile.geometry.width < thumbSize && processedFile.geometry.height < thumbSize) { //dont scale up thumbnail for smaller images processedFile.geometry.thumbwidth = processedFile.geometry.width;