aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-02-12 10:23:24 +0100
committerChocobozzz <me@florianbigard.com>2020-02-12 10:23:24 +0100
commitc6de3a85eebbdef3029769ea6225277419ffbe00 (patch)
tree749d600a294567949e305e3269e4fb97fb054e0b /server/initializers/constants.ts
parent30ff193a60487cffd5f2d2316d11ac88f5a7e7fd (diff)
downloadPeerTube-c6de3a85eebbdef3029769ea6225277419ffbe00.tar.gz
PeerTube-c6de3a85eebbdef3029769ea6225277419ffbe00.tar.zst
PeerTube-c6de3a85eebbdef3029769ea6225277419ffbe00.zip
Fix remote avatar without AP mediatype field
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index cb1c6f2ae..311d371a7 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -422,7 +422,8 @@ const MIMETYPES = {
422 'image/png': '.png', 422 'image/png': '.png',
423 'image/jpg': '.jpg', 423 'image/jpg': '.jpg',
424 'image/jpeg': '.jpg' 424 'image/jpeg': '.jpg'
425 } 425 },
426 EXT_MIMETYPE: null as { [ id: string ]: string }
426 }, 427 },
427 VIDEO_CAPTIONS: { 428 VIDEO_CAPTIONS: {
428 MIMETYPE_EXT: { 429 MIMETYPE_EXT: {
@@ -438,6 +439,7 @@ const MIMETYPES = {
438 } 439 }
439} 440}
440MIMETYPES.AUDIO.EXT_MIMETYPE = invert(MIMETYPES.AUDIO.MIMETYPE_EXT) 441MIMETYPES.AUDIO.EXT_MIMETYPE = invert(MIMETYPES.AUDIO.MIMETYPE_EXT)
442MIMETYPES.IMAGE.EXT_MIMETYPE = invert(MIMETYPES.IMAGE.MIMETYPE_EXT)
441 443
442// --------------------------------------------------------------------------- 444// ---------------------------------------------------------------------------
443 445