diff options
-rw-r--r-- | server/server/controllers/api/videos/live.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/server/controllers/api/videos/live.ts b/server/server/controllers/api/videos/live.ts index dc2f80aff..2b9989eed 100644 --- a/server/server/controllers/api/videos/live.ts +++ b/server/server/controllers/api/videos/live.ts | |||
@@ -197,7 +197,7 @@ async function addLiveVideo (req: express.Request, res: express.Response) { | |||
197 | 197 | ||
198 | if (videoLive.saveReplay) { | 198 | if (videoLive.saveReplay) { |
199 | const replaySettings = new VideoLiveReplaySettingModel({ | 199 | const replaySettings = new VideoLiveReplaySettingModel({ |
200 | privacy: videoInfo.replaySettings.privacy || videoCreated.privacy | 200 | privacy: videoInfo.replaySettings?.privacy ?? videoCreated.privacy |
201 | }) | 201 | }) |
202 | await replaySettings.save(sequelizeOptions) | 202 | await replaySettings.save(sequelizeOptions) |
203 | 203 | ||