1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Add permanent live support

This commit is contained in:
Chocobozzz 2020-12-03 14:10:54 +01:00
parent 19b7ebfaa8
commit bb4ba6d94c
No known key found for this signature in database
GPG key ID: 583A612D890159BE
25 changed files with 392 additions and 28 deletions

View file

@ -64,6 +64,7 @@ function sanitizeAndCheckVideoTorrentObject (video: any) {
if (!isBooleanValid(video.commentsEnabled)) video.commentsEnabled = false
if (!isBooleanValid(video.isLiveBroadcast)) video.isLiveBroadcast = false
if (!isBooleanValid(video.liveSaveReplay)) video.liveSaveReplay = false
if (!isBooleanValid(video.permanentLive)) video.permanentLive = false
return isActivityPubUrlValid(video.id) &&
isVideoNameValid(video.name) &&
@ -74,8 +75,6 @@ function sanitizeAndCheckVideoTorrentObject (video: any) {
(!video.language || isRemoteStringIdentifierValid(video.language)) &&
isVideoViewsValid(video.views) &&
isBooleanValid(video.sensitive) &&
isBooleanValid(video.commentsEnabled) &&
isBooleanValid(video.downloadEnabled) &&
isDateValid(video.published) &&
isDateValid(video.updated) &&
(!video.originallyPublishedAt || isDateValid(video.originallyPublishedAt)) &&