Begin moving video channel to actor

This commit is contained in:
Chocobozzz
2017-12-14 17:38:41 +01:00
parent fadf619ad6
commit 50d6de9c28
100 changed files with 1761 additions and 2041 deletions

View File

@@ -23,3 +23,8 @@ export interface ActivityUrlObject {
width: number
size?: number
}
export interface ActivityPubAttributedTo {
type: 'Group' | 'Person'
id: string
}

View File

@@ -1,6 +1,5 @@
export * from './common-objects'
export * from './video-abuse-object'
export * from './video-channel-object'
export * from './video-torrent-object'
export * from './view-object'
export * from './dislike-object'

View File

@@ -1,13 +0,0 @@
import { ActivityPubOrderedCollection } from '../activitypub-ordered-collection'
export interface VideoChannelObject {
type: 'VideoChannel'
id: string
name: string
content: string
uuid: string
published: string
updated: string
actor?: string
shares?: ActivityPubOrderedCollection<string>
}

View File

@@ -1,6 +1,6 @@
import {
ActivityIconObject,
ActivityIdentifierObject,
ActivityIdentifierObject, ActivityPubAttributedTo,
ActivityTagObject,
ActivityUrlObject
} from './common-objects'
@@ -24,8 +24,8 @@ export interface VideoTorrentObject {
content: string
icon: ActivityIconObject
url: ActivityUrlObject[]
actor?: string
likes?: ActivityPubOrderedCollection<string>
dislikes?: ActivityPubOrderedCollection<string>
shares?: ActivityPubOrderedCollection<string>
attributedTo: ActivityPubAttributedTo[]
}