diff options
author | Chocobozzz <me@florianbigard.com> | 2020-12-03 14:10:54 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-12-03 15:21:16 +0100 |
commit | bb4ba6d94c5051fdd665ebe63fffcc105778b8be (patch) | |
tree | d39302608c53e31395683bb5dd551eac6ced89f8 /server/lib/activitypub | |
parent | 19b7ebfaa822b12f6da25ad2ba10398b3ef25ec6 (diff) | |
download | PeerTube-bb4ba6d94c5051fdd665ebe63fffcc105778b8be.tar.gz PeerTube-bb4ba6d94c5051fdd665ebe63fffcc105778b8be.tar.zst PeerTube-bb4ba6d94c5051fdd665ebe63fffcc105778b8be.zip |
Add permanent live support
Diffstat (limited to 'server/lib/activitypub')
-rw-r--r-- | server/lib/activitypub/videos.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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: { | |||
429 | if (video.isLive) { | 429 | if (video.isLive) { |
430 | const [ videoLive ] = await VideoLiveModel.upsert({ | 430 | const [ videoLive ] = await VideoLiveModel.upsert({ |
431 | saveReplay: videoObject.liveSaveReplay, | 431 | saveReplay: videoObject.liveSaveReplay, |
432 | permanentLive: videoObject.permanentLive, | ||
432 | videoId: video.id | 433 | videoId: video.id |
433 | }, { transaction: t, returning: true }) | 434 | }, { transaction: t, returning: true }) |
434 | 435 | ||
@@ -631,6 +632,7 @@ async function createVideo (videoObject: VideoObject, channel: MChannelAccountLi | |||
631 | const videoLive = new VideoLiveModel({ | 632 | const videoLive = new VideoLiveModel({ |
632 | streamKey: null, | 633 | streamKey: null, |
633 | saveReplay: videoObject.liveSaveReplay, | 634 | saveReplay: videoObject.liveSaveReplay, |
635 | permanentLive: videoObject.permanentLive, | ||
634 | videoId: videoCreated.id | 636 | videoId: videoCreated.id |
635 | }) | 637 | }) |
636 | 638 | ||