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

Feature/Add replay privacy (#5692)

* Add replay settings feature

* Fix replay settings behaviour

* Fix tests

* Fix tests

* Fix tests

* Update openapi doc and fix tests

* Add tests and fix code

* Models correction

* Add migration and update controller and middleware

* Add check params tests

* Fix video live middleware

* Updated code based on review comments
This commit is contained in:
Wicklow 2023-03-31 07:12:21 +00:00 committed by GitHub
parent ebd61437c1
commit 05a60d8599
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 746 additions and 120 deletions

View file

@ -24,10 +24,7 @@ describe('Test live constraints', function () {
let userAccessToken: string
let userChannelId: number
async function createLiveWrapper (options: {
replay: boolean
permanent: boolean
}) {
async function createLiveWrapper (options: { replay: boolean, permanent: boolean }) {
const { replay, permanent } = options
const liveAttributes = {
@ -35,6 +32,7 @@ describe('Test live constraints', function () {
channelId: userChannelId,
privacy: VideoPrivacy.PUBLIC,
saveReplay: replay,
replaySettings: options.replay ? { privacy: VideoPrivacy.PUBLIC } : undefined,
permanentLive: permanent
}