diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/middlewares/validators/videos/video-live.ts | 4 | ||||
-rw-r--r-- | server/tests/api/check-params/live.ts | 6 |
2 files changed, 0 insertions, 10 deletions
diff --git a/server/middlewares/validators/videos/video-live.ts b/server/middlewares/validators/videos/video-live.ts index 8f821c5f9..ff492da0f 100644 --- a/server/middlewares/validators/videos/video-live.ts +++ b/server/middlewares/validators/videos/video-live.ts | |||
@@ -170,10 +170,6 @@ const videoLiveUpdateValidator = [ | |||
170 | 170 | ||
171 | const body: LiveVideoUpdate = req.body | 171 | const body: LiveVideoUpdate = req.body |
172 | 172 | ||
173 | if (body.permanentLive && body.saveReplay) { | ||
174 | return res.fail({ message: 'Cannot set this live as permanent while saving its replay' }) | ||
175 | } | ||
176 | |||
177 | if (hasValidSaveReplay(body) !== true) { | 173 | if (hasValidSaveReplay(body) !== true) { |
178 | return res.fail({ | 174 | return res.fail({ |
179 | status: HttpStatusCode.FORBIDDEN_403, | 175 | status: HttpStatusCode.FORBIDDEN_403, |
diff --git a/server/tests/api/check-params/live.ts b/server/tests/api/check-params/live.ts index 8d520da0d..bbd331657 100644 --- a/server/tests/api/check-params/live.ts +++ b/server/tests/api/check-params/live.ts | |||
@@ -414,12 +414,6 @@ describe('Test video lives API validator', function () { | |||
414 | await command.update({ videoId: videoIdNotLive, fields: {}, expectedStatus: HttpStatusCode.NOT_FOUND_404 }) | 414 | await command.update({ videoId: videoIdNotLive, fields: {}, expectedStatus: HttpStatusCode.NOT_FOUND_404 }) |
415 | }) | 415 | }) |
416 | 416 | ||
417 | it('Should fail with save replay and permanent live set to true', async function () { | ||
418 | const fields = { saveReplay: true, permanentLive: true } | ||
419 | |||
420 | await command.update({ videoId: video.id, fields, expectedStatus: HttpStatusCode.BAD_REQUEST_400 }) | ||
421 | }) | ||
422 | |||
423 | it('Should fail with bad latency setting', async function () { | 417 | it('Should fail with bad latency setting', async function () { |
424 | const fields = { latencyMode: 42 } | 418 | const fields = { latencyMode: 42 } |
425 | 419 | ||