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 /shared | |
parent | 1ef65f4c034cc53ab5d55417e52d60e1f7fc1ddb (diff) | |
download | PeerTube-de6310b2fcbb8a6b79c546b23dfa1920724faaa7.tar.gz PeerTube-de6310b2fcbb8a6b79c546b23dfa1920724faaa7.tar.zst PeerTube-de6310b2fcbb8a6b79c546b23dfa1920724faaa7.zip |
Handle live federation
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/activitypub/activity.ts | 6 | ||||
-rw-r--r-- | shared/models/activitypub/objects/video-torrent-object.ts | 5 |
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 @@ | |||
1 | import { ActivityPubActor } from './activitypub-actor' | 1 | import { ActivityPubActor } from './activitypub-actor' |
2 | import { ActivityPubSignature } from './activitypub-signature' | 2 | import { ActivityPubSignature } from './activitypub-signature' |
3 | import { ActivityFlagReasonObject, CacheFileObject, VideoTorrentObject } from './objects' | 3 | import { ActivityFlagReasonObject, CacheFileObject, VideoObject } from './objects' |
4 | import { AbuseObject } from './objects/abuse-object' | 4 | import { AbuseObject } from './objects/abuse-object' |
5 | import { DislikeObject } from './objects/dislike-object' | 5 | import { DislikeObject } from './objects/dislike-object' |
6 | import { APObject } from './objects/object.model' | 6 | import { APObject } from './objects/object.model' |
@@ -53,12 +53,12 @@ export interface BaseActivity { | |||
53 | 53 | ||
54 | export interface ActivityCreate extends BaseActivity { | 54 | export 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 | ||
59 | export interface ActivityUpdate extends BaseActivity { | 59 | export 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 | ||
64 | export interface ActivityDelete extends BaseActivity { | 64 | export 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' |
8 | import { VideoState } from '../../videos' | 8 | import { VideoState } from '../../videos' |
9 | 9 | ||
10 | export interface VideoTorrentObject { | 10 | export 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 |