diff options
author | Chocobozzz <me@florianbigard.com> | 2020-09-17 13:59:02 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-11-09 15:33:04 +0100 |
commit | de6310b2fcbb8a6b79c546b23dfa1920724faaa7 (patch) | |
tree | 57e73811ef2cf0c903782704284c9cbfc1598adb /server/models/video/video-format-utils.ts | |
parent | 1ef65f4c034cc53ab5d55417e52d60e1f7fc1ddb (diff) | |
download | PeerTube-de6310b2fcbb8a6b79c546b23dfa1920724faaa7.tar.gz PeerTube-de6310b2fcbb8a6b79c546b23dfa1920724faaa7.tar.zst PeerTube-de6310b2fcbb8a6b79c546b23dfa1920724faaa7.zip |
Handle live federation
Diffstat (limited to 'server/models/video/video-format-utils.ts')
-rw-r--r-- | server/models/video/video-format-utils.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/models/video/video-format-utils.ts b/server/models/video/video-format-utils.ts index 0dbd92a43..92bde7773 100644 --- a/server/models/video/video-format-utils.ts +++ b/server/models/video/video-format-utils.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { Video, VideoDetails } from '../../../shared/models/videos' | 1 | import { Video, VideoDetails } from '../../../shared/models/videos' |
2 | import { VideoModel } from './video' | 2 | import { VideoModel } from './video' |
3 | import { ActivityTagObject, ActivityUrlObject, VideoTorrentObject } from '../../../shared/models/activitypub/objects' | 3 | import { ActivityTagObject, ActivityUrlObject, VideoObject } from '../../../shared/models/activitypub/objects' |
4 | import { MIMETYPES, WEBSERVER } from '../../initializers/constants' | 4 | import { MIMETYPES, WEBSERVER } from '../../initializers/constants' |
5 | import { VideoCaptionModel } from './video-caption' | 5 | import { VideoCaptionModel } from './video-caption' |
6 | import { | 6 | import { |
@@ -262,7 +262,7 @@ function addVideoFilesInAPAcc ( | |||
262 | } | 262 | } |
263 | } | 263 | } |
264 | 264 | ||
265 | function videoModelToActivityPubObject (video: MVideoAP): VideoTorrentObject { | 265 | function videoModelToActivityPubObject (video: MVideoAP): VideoObject { |
266 | const { baseUrlHttp, baseUrlWs } = video.getBaseUrls() | 266 | const { baseUrlHttp, baseUrlWs } = video.getBaseUrls() |
267 | if (!video.Tags) video.Tags = [] | 267 | if (!video.Tags) video.Tags = [] |
268 | 268 | ||
@@ -351,6 +351,7 @@ function videoModelToActivityPubObject (video: MVideoAP): VideoTorrentObject { | |||
351 | views: video.views, | 351 | views: video.views, |
352 | sensitive: video.nsfw, | 352 | sensitive: video.nsfw, |
353 | waitTranscoding: video.waitTranscoding, | 353 | waitTranscoding: video.waitTranscoding, |
354 | isLiveBroadcast: video.isLive, | ||
354 | state: video.state, | 355 | state: video.state, |
355 | commentsEnabled: video.commentsEnabled, | 356 | commentsEnabled: video.commentsEnabled, |
356 | downloadEnabled: video.downloadEnabled, | 357 | downloadEnabled: video.downloadEnabled, |