diff options
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/video/video-format-utils.ts | 5 | ||||
-rw-r--r-- | server/models/video/video.ts | 4 |
2 files changed, 5 insertions, 4 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, |
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 1037730e3..a3e3b6cfe 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -31,7 +31,7 @@ import { getServerActor } from '@server/models/application/application' | |||
31 | import { ModelCache } from '@server/models/model-cache' | 31 | import { ModelCache } from '@server/models/model-cache' |
32 | import { VideoFile } from '@shared/models/videos/video-file.model' | 32 | import { VideoFile } from '@shared/models/videos/video-file.model' |
33 | import { ResultList, UserRight, VideoPrivacy, VideoState } from '../../../shared' | 33 | import { ResultList, UserRight, VideoPrivacy, VideoState } from '../../../shared' |
34 | import { VideoTorrentObject } from '../../../shared/models/activitypub/objects' | 34 | import { VideoObject } from '../../../shared/models/activitypub/objects' |
35 | import { Video, VideoDetails } from '../../../shared/models/videos' | 35 | import { Video, VideoDetails } from '../../../shared/models/videos' |
36 | import { ThumbnailType } from '../../../shared/models/videos/thumbnail.type' | 36 | import { ThumbnailType } from '../../../shared/models/videos/thumbnail.type' |
37 | import { VideoFilter } from '../../../shared/models/videos/video-query.type' | 37 | import { VideoFilter } from '../../../shared/models/videos/video-query.type' |
@@ -1763,7 +1763,7 @@ export class VideoModel extends Model<VideoModel> { | |||
1763 | return videoFilesModelToFormattedJSON(this, baseUrlHttp, baseUrlWs, files) | 1763 | return videoFilesModelToFormattedJSON(this, baseUrlHttp, baseUrlWs, files) |
1764 | } | 1764 | } |
1765 | 1765 | ||
1766 | toActivityPubObject (this: MVideoAP): VideoTorrentObject { | 1766 | toActivityPubObject (this: MVideoAP): VideoObject { |
1767 | return videoModelToActivityPubObject(this) | 1767 | return videoModelToActivityPubObject(this) |
1768 | } | 1768 | } |
1769 | 1769 | ||