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

@ -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;

View file

@ -73,7 +73,7 @@
.emoji {
display: inline-block;
width: var(--emoji-size, 32px);
width: auto;
height: var(--emoji-size, 32px);
}

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)
}