1
Fork 0
mirror of https://github.com/diced/zipline.git synced 2025-04-11 23:31:17 -05:00

fix??: I unno, discord hasn't embedded without the link showing but maybe other places could

This commit is contained in:
Jay 2025-02-11 21:04:34 -08:00
parent b83ca16053
commit 66da8b8f52
No known key found for this signature in database
GPG key ID: 97C2E533F17AF0EB

View file

@ -59,7 +59,7 @@ async function handler(req: NextApiReq, res: NextApiRes) {
version: '1.0',
url: `${host}/r/${file.name}`,
thumbnail_url: file.thumbnail ? `${host}/r/${file.thumbnail?.name}` : undefined,
html: `<video src="${host}/r/${file.name}"/>`,
html: `<video><source src="${host}/r/${file.name}" type="${file.mimetype}"/></video>`,
});
return res.json({
type: 'link',