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 })