Merge pull request 'https://git.pleroma.social/pleroma/pleroma-fe/pulls/3489 without emoji changes' (#3502) from Yonle-filetypeservice-1 into develop
Reviewed-on: https://git.pleroma.social/pleroma/pleroma-fe/pulls/3502
This commit is contained in:
commit
2234c9b2f1
1 changed files with 2 additions and 1 deletions
|
|
@ -302,7 +302,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