fix: thumb on share page (#434)

This commit is contained in:
Erick
2023-01-24 15:36:50 -03:00
committed by GitHub
parent e753286e89
commit e8d9578ff7

View File

@ -114,6 +114,7 @@ function renderSharePage(videoFileName: string, baseUrl: string): string {
appUrl: baseUrl,
shareUrl: `${baseUrl}/share/${videoFileName}`,
shareVideoUrl: bucketPathForFile(`${UPLOAD_PATH}/${videoFileName}`),
thumbImageUrl: bucketPathForFile(`${UPLOAD_PATH}/${videoFileName.replace('mp4', 'png')}`),
});
return renderTemplate(shareTmpl, context);
}