mirror of
https://github.com/diced/zipline.git
synced 2025-04-11 23:31:17 -05:00
fix: any edge case where thumbnail don't exist
This commit is contained in:
parent
c8b340cedf
commit
b83ca16053
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ async function handler(req: NextApiReq, res: NextApiRes) {
|
|||
type: 'video',
|
||||
version: '1.0',
|
||||
url: `${host}/r/${file.name}`,
|
||||
thumbnail_url: file.thumbnail ? `${host}/r/${file.thumbnail.name}` : undefined,
|
||||
thumbnail_url: file.thumbnail ? `${host}/r/${file.thumbnail?.name}` : undefined,
|
||||
html: `<video src="${host}/r/${file.name}"/>`,
|
||||
});
|
||||
return res.json({
|
||||
|
|
Loading…
Add table
Reference in a new issue