fix(gifCollections): incorect treatment of all tenor url's as videos (#1191)
This commit is contained in:
parent
269f1c24f7
commit
edf94a04e6
1 changed files with 1 additions and 1 deletions
|
|
@ -11,5 +11,5 @@ const videoExtensions = ["mp4", "ogg", "webm", "avi", "wmv", "flv", "mov", "mkv"
|
|||
|
||||
export function getFormat(url: string) {
|
||||
const extension = getUrlExtension(url);
|
||||
return url.startsWith("https://media.tenor") || extension == null || videoExtensions.includes(extension) ? Format.VIDEO : Format.IMAGE;
|
||||
return extension != null && videoExtensions.includes(extension) ? Format.VIDEO : Format.IMAGE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue