mjimnji
This commit is contained in:
@@ -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`;
|
||||
|
||||
Reference in New Issue
Block a user