entity_normalizer: treat gifv attachment like it is video as we have handled this already.

This commit is contained in:
Yonle 2026-03-27 04:51:55 +07:00
commit ca2dc0a9b7
No known key found for this signature in database
GPG key ID: 11889F326F523287
3 changed files with 5 additions and 4 deletions

View file

@ -299,7 +299,8 @@ export const parseAttachment = (data) => {
}
if (data.type !== 'unknown') {
output.type = data.type
// treat gifv like it is "video"
output.type = data.type === 'gifv' ? 'video' : data.type
} else {
output.type = fileTypeService.fileType(output.mimetype)
}