aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-03 10:12:36 +0100
committerChocobozzz <me@florianbigard.com>2018-01-03 10:38:19 +0100
commit47564bbe2eeb2baae9b7e3f9b2b8d16522bc7e04 (patch)
tree25e2836baf3dfce6f422192d98332db1bfe65890 /shared
parentc5911fd347c76e8bdc05ea9f3ee9efed4a58c236 (diff)
downloadPeerTube-47564bbe2eeb2baae9b7e3f9b2b8d16522bc7e04.tar.gz
PeerTube-47564bbe2eeb2baae9b7e3f9b2b8d16522bc7e04.tar.zst
PeerTube-47564bbe2eeb2baae9b7e3f9b2b8d16522bc7e04.zip
Add ability to disable video comments
Diffstat (limited to 'shared')
-rw-r--r--shared/models/activitypub/objects/video-torrent-object.ts1
-rw-r--r--shared/models/videos/video-create.model.ts1
-rw-r--r--shared/models/videos/video-update.model.ts1
-rw-r--r--shared/models/videos/video.model.ts1
4 files changed, 4 insertions, 0 deletions
diff --git a/shared/models/activitypub/objects/video-torrent-object.ts b/shared/models/activitypub/objects/video-torrent-object.ts
index 5ccc80bcb..cf0e0ba54 100644
--- a/shared/models/activitypub/objects/video-torrent-object.ts
+++ b/shared/models/activitypub/objects/video-torrent-object.ts
@@ -18,6 +18,7 @@ export interface VideoTorrentObject {
18 language: ActivityIdentifierObject 18 language: ActivityIdentifierObject
19 views: number 19 views: number
20 nsfw: boolean 20 nsfw: boolean
21 commentsEnabled: boolean
21 published: string 22 published: string
22 updated: string 23 updated: string
23 mediaType: 'text/markdown' 24 mediaType: 'text/markdown'
diff --git a/shared/models/videos/video-create.model.ts b/shared/models/videos/video-create.model.ts
index 8bc6a6639..139c2579e 100644
--- a/shared/models/videos/video-create.model.ts
+++ b/shared/models/videos/video-create.model.ts
@@ -9,5 +9,6 @@ export interface VideoCreate {
9 nsfw: boolean 9 nsfw: boolean
10 name: string 10 name: string
11 tags?: string[] 11 tags?: string[]
12 commentsEnabled?: boolean
12 privacy: VideoPrivacy 13 privacy: VideoPrivacy
13} 14}
diff --git a/shared/models/videos/video-update.model.ts b/shared/models/videos/video-update.model.ts
index 0cf38fe6e..fc772f77b 100644
--- a/shared/models/videos/video-update.model.ts
+++ b/shared/models/videos/video-update.model.ts
@@ -8,5 +8,6 @@ export interface VideoUpdate {
8 description?: string 8 description?: string
9 privacy?: VideoPrivacy 9 privacy?: VideoPrivacy
10 tags?: string[] 10 tags?: string[]
11 commentsEnabled?: boolean
11 nsfw?: boolean 12 nsfw?: boolean
12} 13}
diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts
index 13b9c49b3..39d1edc06 100644
--- a/shared/models/videos/video.model.ts
+++ b/shared/models/videos/video.model.ts
@@ -45,4 +45,5 @@ export interface VideoDetails extends Video {
45 tags: string[] 45 tags: string[]
46 files: VideoFile[] 46 files: VideoFile[]
47 account: Account 47 account: Account
48 commentsEnabled: boolean
48} 49}