mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-22 10:45:56 +02:00
* Don't allow 'system' filters to be deleted
* Code cleanup * Static UUID for "default/system" filters
This commit is contained in:
parent
fb9ecbfb93
commit
d230a2f58b
11 changed files with 91 additions and 24 deletions
|
@ -15,7 +15,8 @@ function startup(cb) {
|
|||
//
|
||||
const ADDITIONAL_EXT_MIMETYPES = {
|
||||
arj : 'application/x-arj',
|
||||
ans : 'text/x-ansi',
|
||||
ans : 'text/x-ansi',
|
||||
gz : 'application/gzip', // not in mime-types 2.1.15 :(
|
||||
};
|
||||
|
||||
_.forEach(ADDITIONAL_EXT_MIMETYPES, (mimeType, ext) => {
|
||||
|
@ -23,6 +24,10 @@ function startup(cb) {
|
|||
if(!_.isString(mimeTypes.types[ext])) {
|
||||
mimeTypes[ext] = mimeType;
|
||||
}
|
||||
|
||||
if(!mimeTypes.extensions[mimeType]) {
|
||||
mimeTypes.extensions[mimeType] = [ ext ];
|
||||
}
|
||||
});
|
||||
|
||||
return cb(null);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue