Update media-utils.ts

This commit is contained in:
Tom (plebeius.eth)
2024-10-17 17:38:07 +02:00
parent 9042df7a39
commit 08414051f5
+1 -1
View File
@@ -88,7 +88,7 @@ export const getLinkMediaInfo = memoize(
}
try {
mime = extName(new URL(link).pathname.toLowerCase().replace('/', ''))[0]?.mime;
mime = extName(url.pathname.toLowerCase().replace('/', ''))[0]?.mime;
if (mime) {
if (mime.startsWith('image')) {
type = mime === 'image/gif' ? 'gif' : 'image';