From de6310b2fcbb8a6b79c546b23dfa1920724faaa7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 17 Sep 2020 13:59:02 +0200 Subject: Handle live federation --- shared/models/activitypub/activity.ts | 6 +++--- shared/models/activitypub/objects/video-torrent-object.ts | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'shared/models') 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 @@ import { ActivityPubActor } from './activitypub-actor' import { ActivityPubSignature } from './activitypub-signature' -import { ActivityFlagReasonObject, CacheFileObject, VideoTorrentObject } from './objects' +import { ActivityFlagReasonObject, CacheFileObject, VideoObject } from './objects' import { AbuseObject } from './objects/abuse-object' import { DislikeObject } from './objects/dislike-object' import { APObject } from './objects/object.model' @@ -53,12 +53,12 @@ export interface BaseActivity { export interface ActivityCreate extends BaseActivity { type: 'Create' - object: VideoTorrentObject | AbuseObject | ViewObject | DislikeObject | VideoCommentObject | CacheFileObject | PlaylistObject + object: VideoObject | AbuseObject | ViewObject | DislikeObject | VideoCommentObject | CacheFileObject | PlaylistObject } export interface ActivityUpdate extends BaseActivity { type: 'Update' - object: VideoTorrentObject | ActivityPubActor | CacheFileObject | PlaylistObject + object: VideoObject | ActivityPubActor | CacheFileObject | PlaylistObject } 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 { } from './common-objects' import { VideoState } from '../../videos' -export interface VideoTorrentObject { +export interface VideoObject { type: 'Video' id: string name: string @@ -19,7 +19,10 @@ export interface VideoTorrentObject { language: ActivityIdentifierObject subtitleLanguage: ActivityIdentifierObject[] views: number + sensitive: boolean + isLiveBroadcast: boolean + commentsEnabled: boolean downloadEnabled: boolean waitTranscoding: boolean -- cgit v1.2.3