aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video')
-rw-r--r--server/models/video/video-format-utils.ts2
-rw-r--r--server/models/video/video.ts4
2 files changed, 6 insertions, 0 deletions
diff --git a/server/models/video/video-format-utils.ts b/server/models/video/video-format-utils.ts
index e49dbee30..76d0445d4 100644
--- a/server/models/video/video-format-utils.ts
+++ b/server/models/video/video-format-utils.ts
@@ -140,6 +140,7 @@ function videoModelToFormattedDetailsJSON (video: VideoModel): VideoDetails {
140 account: video.VideoChannel.Account.toFormattedJSON(), 140 account: video.VideoChannel.Account.toFormattedJSON(),
141 tags, 141 tags,
142 commentsEnabled: video.commentsEnabled, 142 commentsEnabled: video.commentsEnabled,
143 downloadEnabled: video.downloadEnabled,
143 waitTranscoding: video.waitTranscoding, 144 waitTranscoding: video.waitTranscoding,
144 state: { 145 state: {
145 id: video.state, 146 id: video.state,
@@ -320,6 +321,7 @@ function videoModelToActivityPubObject (video: VideoModel): VideoTorrentObject {
320 waitTranscoding: video.waitTranscoding, 321 waitTranscoding: video.waitTranscoding,
321 state: video.state, 322 state: video.state,
322 commentsEnabled: video.commentsEnabled, 323 commentsEnabled: video.commentsEnabled,
324 downloadEnabled: video.downloadEnabled,
323 published: video.publishedAt.toISOString(), 325 published: video.publishedAt.toISOString(),
324 updated: video.updatedAt.toISOString(), 326 updated: video.updatedAt.toISOString(),
325 mediaType: 'text/markdown', 327 mediaType: 'text/markdown',
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 702260772..0feeed4f8 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -717,6 +717,10 @@ export class VideoModel extends Model<VideoModel> {
717 717
718 @AllowNull(false) 718 @AllowNull(false)
719 @Column 719 @Column
720 downloadEnabled: boolean
721
722 @AllowNull(false)
723 @Column
720 waitTranscoding: boolean 724 waitTranscoding: boolean
721 725
722 @AllowNull(false) 726 @AllowNull(false)