default gif type to "gif" instead of "static gif"

This commit is contained in:
Tom (plebeius.eth)
2024-09-03 14:27:29 +02:00
parent 7f6a0b9794
commit 0018df7f8a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ export const LinkTypePreviewer = ({ link }: { link: string }) => {
if (type === 'gif' && gifFrameUrl !== null) {
type = t('animated_gif');
} else if (type === 'gif' && gifFrameUrl === null) {
type = t('static_gif');
type = t('gif');
}
return isValidURL(link) ? type : t('invalid_url');
+1 -1
View File
@@ -18,7 +18,7 @@ export const getDisplayMediaInfoType = (type: string, t: any) => {
case 'animated gif':
return t('animated_gif');
case 'static gif':
return t('static_gif');
return t('gif');
case 'iframe':
return t('iframe');
case 'video':