From de6310b2fcbb8a6b79c546b23dfa1920724faaa7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 17 Sep 2020 13:59:02 +0200 Subject: Handle live federation --- server/helpers/custom-validators/activitypub/videos.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'server/helpers/custom-validators/activitypub/videos.ts') diff --git a/server/helpers/custom-validators/activitypub/videos.ts b/server/helpers/custom-validators/activitypub/videos.ts index 876cc7f50..7ff551ecd 100644 --- a/server/helpers/custom-validators/activitypub/videos.ts +++ b/server/helpers/custom-validators/activitypub/videos.ts @@ -62,6 +62,7 @@ function sanitizeAndCheckVideoTorrentObject (video: any) { if (!isBooleanValid(video.waitTranscoding)) video.waitTranscoding = false if (!isBooleanValid(video.downloadEnabled)) video.downloadEnabled = true if (!isBooleanValid(video.commentsEnabled)) video.commentsEnabled = false + if (!isBooleanValid(video.isLiveBroadcast)) video.isLiveBroadcast = false return isActivityPubUrlValid(video.id) && isVideoNameValid(video.name) && -- cgit v1.2.3