ActivityPub-federated video streaming platform using P2P directly in your web browser
Correctly handle optional replay setting
Chocobozzz64cb55fcb1c2
diff --git a/server/server/controllers/api/videos/live.ts b/server/server/controllers/api/videos/live.tsindex dc2f80aff6..2b9989eedf 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) {if (videoLive.saveReplay) {const replaySettings = new VideoLiveReplaySettingModel({- privacy: videoInfo.replaySettings.privacy || videoCreated.privacy+ privacy: videoInfo.replaySettings?.privacy ?? videoCreated.privacy})await replaySettings.save(sequelizeOptions)