mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Correctly handle optional replay setting
This commit is contained in:
@@ -197,7 +197,7 @@ async function addLiveVideo (req: express.Request, res: express.Response) {
|
||||
|
||||
if (videoLive.saveReplay) {
|
||||
const replaySettings = new VideoLiveReplaySettingModel({
|
||||
privacy: videoInfo.replaySettings.privacy || videoCreated.privacy
|
||||
privacy: videoInfo.replaySettings?.privacy ?? videoCreated.privacy
|
||||
})
|
||||
await replaySettings.save(sequelizeOptions)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user