Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix get video from redudancy

Chocobozzz2e1e4af03bc9
diff --git a/server/models/redundancy/video-redundancy.ts b/server/models/redundancy/video-redundancy.ts
index 74895fe303..53293df378 100644
--- a/server/models/redundancy/video-redundancy.ts
+++ b/server/models/redundancy/video-redundancy.ts
@@ -709,9 +709,9 @@ export class VideoRedundancyModel extends Model {
}
getVideo () {
- if (this.VideoFile) return this.VideoFile.Video
+ if (this.VideoFile?.Video) return this.VideoFile.Video
- if (this.VideoStreamingPlaylist.Video) return this.VideoStreamingPlaylist.Video
+ if (this.VideoStreamingPlaylist?.Video) return this.VideoStreamingPlaylist.Video
return undefined
}