From fb3cbc76ec1ea725bd2843bb2e38345c206e6403 Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Tue, 11 Aug 2026 23:41:37 +0200 Subject: [PATCH] mjimnji --- src/upload_handler.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/upload_handler.mjs b/src/upload_handler.mjs index 17c9878..4a81631 100644 --- a/src/upload_handler.mjs +++ b/src/upload_handler.mjs @@ -854,7 +854,7 @@ export const handleUpload = async (req, res, self) => { } // Auto-tag SWF uploads with "Flash" and "SWF" - if (mime === 'application/x-shockwave-flash' || mime === 'application/vnd.adobe.flash.movie') { + if (actualMime === 'application/x-shockwave-flash' || actualMime === 'application/vnd.adobe.flash.movie') { const swfTags = ['Flash', 'SWF']; for (const tagname of swfTags) { let tagRow = await db`SELECT id FROM tags WHERE normalized = slugify(${tagname}) LIMIT 1`;