X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fmodels%2Factivitypub%2Fobjects%2Fvideo-torrent-object.ts;h=beb2f519ec9ce7123af553572dc9700018e85313;hb=156c50af3085468a47b8ae73fe8cfcae46b42398;hp=5685a43e0a367d4a301e68d24ca730a057e44494;hpb=0d0e8dd0904b380b70e19ebcb4763d65601c4632;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/models/activitypub/objects/video-torrent-object.ts b/shared/models/activitypub/objects/video-torrent-object.ts index 5685a43e0..beb2f519e 100644 --- a/shared/models/activitypub/objects/video-torrent-object.ts +++ b/shared/models/activitypub/objects/video-torrent-object.ts @@ -1,9 +1,11 @@ import { ActivityIconObject, ActivityIdentifierObject, + ActivityPubAttributedTo, ActivityTagObject, ActivityUrlObject } from './common-objects' +import { VideoState } from '../../videos' export interface VideoTorrentObject { type: 'Video' @@ -15,12 +17,25 @@ export interface VideoTorrentObject { category: ActivityIdentifierObject licence: ActivityIdentifierObject language: ActivityIdentifierObject + subtitleLanguage: ActivityIdentifierObject[] views: number - nsfw: boolean - published: Date - updated: Date + sensitive: boolean + commentsEnabled: boolean, + downloadingEnabled: boolean, + waitTranscoding: boolean + state: VideoState + published: string + updated: string mediaType: 'text/markdown' content: string + support: string icon: ActivityIconObject url: ActivityUrlObject[] + likes: string + dislikes: string + shares: string + comments: string + attributedTo: ActivityPubAttributedTo[] + to?: string[] + cc?: string[] }