diff options
author | Wicklow <wicklow@framasoft.org> | 2023-04-19 15:18:44 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2023-04-19 15:59:36 +0200 |
commit | 73ef4b54aa6d687575502b4d0297fd2cbee8826a (patch) | |
tree | 9728e84c50bd853499e675e1a6e0f38309c2e4f3 /client/src/app/+videos/+video-edit | |
parent | f8c62d3414871ae641465917f63c3ed59f97d584 (diff) | |
download | PeerTube-73ef4b54aa6d687575502b4d0297fd2cbee8826a.tar.gz PeerTube-73ef4b54aa6d687575502b4d0297fd2cbee8826a.tar.zst PeerTube-73ef4b54aa6d687575502b4d0297fd2cbee8826a.zip |
Don't send replay settings on not replayed lives
Diffstat (limited to 'client/src/app/+videos/+video-edit')
-rw-r--r-- | client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts | 9 | ||||
-rw-r--r-- | client/src/app/+videos/+video-edit/video-update.component.ts | 9 |
2 files changed, 14 insertions, 4 deletions
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts index 904492994..ba612f553 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts +++ b/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts | |||
@@ -137,9 +137,14 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, AfterView | |||
137 | video.uuid = this.videoUUID | 137 | video.uuid = this.videoUUID |
138 | video.shortUUID = this.videoShortUUID | 138 | video.shortUUID = this.videoShortUUID |
139 | 139 | ||
140 | const saveReplay = this.form.value.saveReplay | ||
141 | const replaySettings = saveReplay | ||
142 | ? { privacy: this.form.value.replayPrivacy } | ||
143 | : undefined | ||
144 | |||
140 | const liveVideoUpdate: LiveVideoUpdate = { | 145 | const liveVideoUpdate: LiveVideoUpdate = { |
141 | saveReplay: this.form.value.saveReplay, | 146 | saveReplay, |
142 | replaySettings: { privacy: this.form.value.replayPrivacy }, | 147 | replaySettings, |
143 | latencyMode: this.form.value.latencyMode, | 148 | latencyMode: this.form.value.latencyMode, |
144 | permanentLive: this.form.value.permanentLive | 149 | permanentLive: this.form.value.permanentLive |
145 | } | 150 | } |
diff --git a/client/src/app/+videos/+video-edit/video-update.component.ts b/client/src/app/+videos/+video-edit/video-update.component.ts index b70270261..ad71162b8 100644 --- a/client/src/app/+videos/+video-edit/video-update.component.ts +++ b/client/src/app/+videos/+video-edit/video-update.component.ts | |||
@@ -127,9 +127,14 @@ export class VideoUpdateComponent extends FormReactive implements OnInit { | |||
127 | switchMap(() => { | 127 | switchMap(() => { |
128 | if (!this.liveVideo) return of(undefined) | 128 | if (!this.liveVideo) return of(undefined) |
129 | 129 | ||
130 | const saveReplay = !!this.form.value.saveReplay | ||
131 | const replaySettings = saveReplay | ||
132 | ? { privacy: this.form.value.replayPrivacy } | ||
133 | : undefined | ||
134 | |||
130 | const liveVideoUpdate: LiveVideoUpdate = { | 135 | const liveVideoUpdate: LiveVideoUpdate = { |
131 | saveReplay: !!this.form.value.saveReplay, | 136 | saveReplay, |
132 | replaySettings: { privacy: this.form.value.replayPrivacy }, | 137 | replaySettings, |
133 | permanentLive: !!this.form.value.permanentLive, | 138 | permanentLive: !!this.form.value.permanentLive, |
134 | latencyMode: this.form.value.latencyMode | 139 | latencyMode: this.form.value.latencyMode |
135 | } | 140 | } |