From bb4ba6d94c5051fdd665ebe63fffcc105778b8be Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 3 Dec 2020 14:10:54 +0100 Subject: Add permanent live support --- server/lib/activitypub/videos.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/lib/activitypub/videos.ts') diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts index 4053f487c..04f0bfc23 100644 --- a/server/lib/activitypub/videos.ts +++ b/server/lib/activitypub/videos.ts @@ -429,6 +429,7 @@ async function updateVideoFromAP (options: { if (video.isLive) { const [ videoLive ] = await VideoLiveModel.upsert({ saveReplay: videoObject.liveSaveReplay, + permanentLive: videoObject.permanentLive, videoId: video.id }, { transaction: t, returning: true }) @@ -631,6 +632,7 @@ async function createVideo (videoObject: VideoObject, channel: MChannelAccountLi const videoLive = new VideoLiveModel({ streamKey: null, saveReplay: videoObject.liveSaveReplay, + permanentLive: videoObject.permanentLive, videoId: videoCreated.id }) -- cgit v1.2.3