diff options
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index ba522c9de..020ed68da 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -27,7 +27,7 @@ import { CONFIG, registerConfigChangedHandler } from './config' | |||
27 | 27 | ||
28 | // --------------------------------------------------------------------------- | 28 | // --------------------------------------------------------------------------- |
29 | 29 | ||
30 | const LAST_MIGRATION_VERSION = 770 | 30 | const LAST_MIGRATION_VERSION = 775 |
31 | 31 | ||
32 | // --------------------------------------------------------------------------- | 32 | // --------------------------------------------------------------------------- |
33 | 33 | ||
@@ -634,7 +634,8 @@ const MIMETYPES = { | |||
634 | 'text/vtt': '.vtt', | 634 | 'text/vtt': '.vtt', |
635 | 'application/x-subrip': '.srt', | 635 | 'application/x-subrip': '.srt', |
636 | 'text/plain': '.srt' | 636 | 'text/plain': '.srt' |
637 | } | 637 | }, |
638 | EXT_MIMETYPE: null as { [ id: string ]: string } | ||
638 | }, | 639 | }, |
639 | TORRENT: { | 640 | TORRENT: { |
640 | MIMETYPE_EXT: { | 641 | MIMETYPE_EXT: { |
@@ -649,6 +650,7 @@ const MIMETYPES = { | |||
649 | } | 650 | } |
650 | MIMETYPES.AUDIO.EXT_MIMETYPE = invert(MIMETYPES.AUDIO.MIMETYPE_EXT) | 651 | MIMETYPES.AUDIO.EXT_MIMETYPE = invert(MIMETYPES.AUDIO.MIMETYPE_EXT) |
651 | MIMETYPES.IMAGE.EXT_MIMETYPE = invert(MIMETYPES.IMAGE.MIMETYPE_EXT) | 652 | MIMETYPES.IMAGE.EXT_MIMETYPE = invert(MIMETYPES.IMAGE.MIMETYPE_EXT) |
653 | MIMETYPES.VIDEO_CAPTIONS.EXT_MIMETYPE = invert(MIMETYPES.VIDEO_CAPTIONS.MIMETYPE_EXT) | ||
652 | 654 | ||
653 | const BINARY_CONTENT_TYPES = new Set([ | 655 | const BINARY_CONTENT_TYPES = new Set([ |
654 | 'binary/octet-stream', | 656 | 'binary/octet-stream', |