ActivityPub-federated video streaming platform using P2P directly in your web browser
Don't crash if there is no thumbnail
Chocobozzz3ab630ef38f8
diff --git a/server/core/lib/video-download.ts b/server/core/lib/video-download.tsindex 7eeb3ea1ee..7259b6291c 100644--- a/server/core/lib/video-download.ts+++ b/server/core/lib/video-download.ts@@ -270,7 +270,7 @@ export class VideoDownload {if (this.video.isLocal()) return { coverPath: thumbnail?.getFSPath() }- if (thumbnail.fileUrl) {+ if (thumbnail?.fileUrl) {const destination = VideoPathManager.Instance.buildTMPDestination(thumbnail.filename)await doRequestAndSaveToFile(thumbnail.fileUrl, destination)