entity_normalizer: treat gifv attachment like it is video as we have handled this already.
This commit is contained in:
parent
8df10bd595
commit
ca2dc0a9b7
3 changed files with 5 additions and 4 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue