Skip to content

Commit

Permalink
chore: add gif to admitted images
Browse files Browse the repository at this point in the history
  • Loading branch information
1emu committed Dec 26, 2024
1 parent 920d733 commit e3542dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/validations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit e3542dd

Please sign in to comment.