aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/activitypub
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/activitypub')
-rw-r--r--shared/models/activitypub/activity.ts6
-rw-r--r--shared/models/activitypub/objects/video-torrent-object.ts5
2 files changed, 7 insertions, 4 deletions
diff --git a/shared/models/activitypub/activity.ts b/shared/models/activitypub/activity.ts
index 5b4ce214a..548d8858e 100644
--- a/shared/models/activitypub/activity.ts
+++ b/shared/models/activitypub/activity.ts
@@ -1,6 +1,6 @@
1import { ActivityPubActor } from './activitypub-actor' 1import { ActivityPubActor } from './activitypub-actor'
2import { ActivityPubSignature } from './activitypub-signature' 2import { ActivityPubSignature } from './activitypub-signature'
3import { ActivityFlagReasonObject, CacheFileObject, VideoTorrentObject } from './objects' 3import { ActivityFlagReasonObject, CacheFileObject, VideoObject } from './objects'
4import { AbuseObject } from './objects/abuse-object' 4import { AbuseObject } from './objects/abuse-object'
5import { DislikeObject } from './objects/dislike-object' 5import { DislikeObject } from './objects/dislike-object'
6import { APObject } from './objects/object.model' 6import { APObject } from './objects/object.model'
@@ -53,12 +53,12 @@ export interface BaseActivity {
53 53
54export interface ActivityCreate extends BaseActivity { 54export interface ActivityCreate extends BaseActivity {
55 type: 'Create' 55 type: 'Create'
56 object: VideoTorrentObject | AbuseObject | ViewObject | DislikeObject | VideoCommentObject | CacheFileObject | PlaylistObject 56 object: VideoObject | AbuseObject | ViewObject | DislikeObject | VideoCommentObject | CacheFileObject | PlaylistObject
57} 57}
58 58
59export interface ActivityUpdate extends BaseActivity { 59export interface ActivityUpdate extends BaseActivity {
60 type: 'Update' 60 type: 'Update'
61 object: VideoTorrentObject | ActivityPubActor | CacheFileObject | PlaylistObject 61 object: VideoObject | ActivityPubActor | CacheFileObject | PlaylistObject
62} 62}
63 63
64export interface ActivityDelete extends BaseActivity { 64export interface ActivityDelete extends BaseActivity {
diff --git a/shared/models/activitypub/objects/video-torrent-object.ts b/shared/models/activitypub/objects/video-torrent-object.ts
index 11de8fc56..5b035a371 100644
--- a/shared/models/activitypub/objects/video-torrent-object.ts
+++ b/shared/models/activitypub/objects/video-torrent-object.ts
@@ -7,7 +7,7 @@ import {
7} from './common-objects' 7} from './common-objects'
8import { VideoState } from '../../videos' 8import { VideoState } from '../../videos'
9 9
10export interface VideoTorrentObject { 10export interface VideoObject {
11 type: 'Video' 11 type: 'Video'
12 id: string 12 id: string
13 name: string 13 name: string
@@ -19,7 +19,10 @@ export interface VideoTorrentObject {
19 language: ActivityIdentifierObject 19 language: ActivityIdentifierObject
20 subtitleLanguage: ActivityIdentifierObject[] 20 subtitleLanguage: ActivityIdentifierObject[]
21 views: number 21 views: number
22
22 sensitive: boolean 23 sensitive: boolean
24 isLiveBroadcast: boolean
25
23 commentsEnabled: boolean 26 commentsEnabled: boolean
24 downloadEnabled: boolean 27 downloadEnabled: boolean
25 waitTranscoding: boolean 28 waitTranscoding: boolean