Fixed RedGIFs module content type.

This commit is contained in:
2024-09-11 05:16:58 +02:00
parent 7eaaadaa2a
commit 529f84d9c2
3 changed files with 2 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ async function redgifs(host) {
id: data.gif.id,
url: data.gif.urls.hd,
description: data.gif.tags.join(', '),
type: mime.getType(data.gif.urls.hd),
type: mime.getType(new URL(data.gif.urls.hd).pathname),
datetime: new Date(data.gif.createDate * 1000),
original: data.gif,
}],