mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
default gif type to "gif" instead of "static gif"
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user