This commit is contained in:
2026-08-11 23:41:37 +02:00
parent 2865a2d4e7
commit fb3cbc76ec

View File

@@ -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`;