From e3542dd190697fc4e076834a05e9ac99e023cbce Mon Sep 17 00:00:00 2001 From: 1emu Date: Thu, 26 Dec 2024 11:47:33 -0300 Subject: [PATCH] chore: add gif to admitted images --- src/utils/validations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/validations.ts b/src/utils/validations.ts index a740e611d..27da62004 100644 --- a/src/utils/validations.ts +++ b/src/utils/validations.ts @@ -281,7 +281,7 @@ function isFromTrustedDomain(url: string): boolean { } export async function isValidImage(imageUrl: string) { - const allowedImageTypes = new Set(['image/bmp', 'image/jpeg', 'image/png', 'image/webp']) + const allowedImageTypes = new Set(['image/bmp', 'image/jpeg', 'image/png', 'image/webp', 'image/gif']) if (!isFromTrustedDomain(imageUrl)) { logger.error('Image not from trusted domain', { imageUrl })