diff options
author | Chocobozzz <me@florianbigard.com> | 2022-05-02 10:49:48 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-05-03 08:32:20 +0200 |
commit | 86c5229b4d726202378ef46854383bcafca22310 (patch) | |
tree | 871f1fe8b9f3043dcbc132d5771a32f41ab202b1 /server/middlewares/validators | |
parent | 98ebfa39500ce9dfbb782e43c4d269f9a2989698 (diff) | |
download | PeerTube-86c5229b4d726202378ef46854383bcafca22310.tar.gz PeerTube-86c5229b4d726202378ef46854383bcafca22310.tar.zst PeerTube-86c5229b4d726202378ef46854383bcafca22310.zip |
Save replay of permanent live in client
Diffstat (limited to 'server/middlewares/validators')
-rw-r--r-- | server/middlewares/validators/videos/video-live.ts | 4 |
1 files changed, 0 insertions, 4 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, |