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
|
|
@ -41,7 +41,7 @@
|
|||
margin: 0;
|
||||
|
||||
.reaction-emoji {
|
||||
width: var(--emoji-size);
|
||||
width: auto;
|
||||
height: var(--emoji-size);
|
||||
margin-right: 0.25em;
|
||||
line-height: var(--emoji-size);
|
||||
|
|
@ -55,7 +55,7 @@
|
|||
.reaction-emoji-content {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
width: var(--emoji-size);
|
||||
width: auto;
|
||||
height: var(--emoji-size);
|
||||
line-height: inherit;
|
||||
overflow: hidden;
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@
|
|||
|
||||
.emoji {
|
||||
display: inline-block;
|
||||
width: var(--emoji-size, 32px);
|
||||
width: auto;
|
||||
height: var(--emoji-size, 32px);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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