aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/live
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-26 17:36:38 +0100
committerChocobozzz <me@florianbigard.com>2021-11-26 17:36:55 +0100
commit7137377d097a74087ed062c8071c1aa5c717c7f7 (patch)
tree346dcba7770792cfcf00c6e45345030735189f2c /server/lib/live
parentca9bea152a7a62831daddbd56ee3c5dc71282fbe (diff)
downloadPeerTube-7137377d097a74087ed062c8071c1aa5c717c7f7.tar.gz
PeerTube-7137377d097a74087ed062c8071c1aa5c717c7f7.tar.zst
PeerTube-7137377d097a74087ed062c8071c1aa5c717c7f7.zip
Auto update publishedAt in live restream
Diffstat (limited to 'server/lib/live')
-rw-r--r--server/lib/live/live-manager.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/lib/live/live-manager.ts b/server/lib/live/live-manager.ts
index b3bf5a999..33e49acc1 100644
--- a/server/lib/live/live-manager.ts
+++ b/server/lib/live/live-manager.ts
@@ -343,6 +343,7 @@ class LiveManager {
343 logger.info('Will publish and federate live %s.', video.url, localLTags) 343 logger.info('Will publish and federate live %s.', video.url, localLTags)
344 344
345 video.state = VideoState.PUBLISHED 345 video.state = VideoState.PUBLISHED
346 video.publishedAt = new Date()
346 await video.save() 347 await video.save()
347 348
348 live.Video = video 349 live.Video = video