From c6de3a85eebbdef3029769ea6225277419ffbe00 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 12 Feb 2020 10:23:24 +0100 Subject: Fix remote avatar without AP mediatype field --- server/initializers/constants.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server/initializers/constants.ts') 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 = { 'image/png': '.png', 'image/jpg': '.jpg', 'image/jpeg': '.jpg' - } + }, + EXT_MIMETYPE: null as { [ id: string ]: string } }, VIDEO_CAPTIONS: { MIMETYPE_EXT: { @@ -438,6 +439,7 @@ const MIMETYPES = { } } MIMETYPES.AUDIO.EXT_MIMETYPE = invert(MIMETYPES.AUDIO.MIMETYPE_EXT) +MIMETYPES.IMAGE.EXT_MIMETYPE = invert(MIMETYPES.IMAGE.MIMETYPE_EXT) // --------------------------------------------------------------------------- -- cgit v1.2.3