diff options
Diffstat (limited to 'shared/models/activitypub/objects')
4 files changed, 7 insertions, 16 deletions
diff --git a/shared/models/activitypub/objects/common-objects.ts b/shared/models/activitypub/objects/common-objects.ts index 3eaab21b5..ea5a503ac 100644 --- a/shared/models/activitypub/objects/common-objects.ts +++ b/shared/models/activitypub/objects/common-objects.ts | |||
@@ -23,3 +23,8 @@ export interface ActivityUrlObject { | |||
23 | width: number | 23 | width: number |
24 | size?: number | 24 | size?: number |
25 | } | 25 | } |
26 | |||
27 | export interface ActivityPubAttributedTo { | ||
28 | type: 'Group' | 'Person' | ||
29 | id: string | ||
30 | } | ||
diff --git a/shared/models/activitypub/objects/index.ts b/shared/models/activitypub/objects/index.ts index f1f761e44..3efd3ef13 100644 --- a/shared/models/activitypub/objects/index.ts +++ b/shared/models/activitypub/objects/index.ts | |||
@@ -1,6 +1,5 @@ | |||
1 | export * from './common-objects' | 1 | export * from './common-objects' |
2 | export * from './video-abuse-object' | 2 | export * from './video-abuse-object' |
3 | export * from './video-channel-object' | ||
4 | export * from './video-torrent-object' | 3 | export * from './video-torrent-object' |
5 | export * from './view-object' | 4 | export * from './view-object' |
6 | export * from './dislike-object' | 5 | export * from './dislike-object' |
diff --git a/shared/models/activitypub/objects/video-channel-object.ts b/shared/models/activitypub/objects/video-channel-object.ts deleted file mode 100644 index dcce8696b..000000000 --- a/shared/models/activitypub/objects/video-channel-object.ts +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | import { ActivityPubOrderedCollection } from '../activitypub-ordered-collection' | ||
2 | |||
3 | export interface VideoChannelObject { | ||
4 | type: 'VideoChannel' | ||
5 | id: string | ||
6 | name: string | ||
7 | content: string | ||
8 | uuid: string | ||
9 | published: string | ||
10 | updated: string | ||
11 | actor?: string | ||
12 | shares?: ActivityPubOrderedCollection<string> | ||
13 | } | ||
diff --git a/shared/models/activitypub/objects/video-torrent-object.ts b/shared/models/activitypub/objects/video-torrent-object.ts index a15ec7142..1405f7748 100644 --- a/shared/models/activitypub/objects/video-torrent-object.ts +++ b/shared/models/activitypub/objects/video-torrent-object.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { | 1 | import { |
2 | ActivityIconObject, | 2 | ActivityIconObject, |
3 | ActivityIdentifierObject, | 3 | ActivityIdentifierObject, ActivityPubAttributedTo, |
4 | ActivityTagObject, | 4 | ActivityTagObject, |
5 | ActivityUrlObject | 5 | ActivityUrlObject |
6 | } from './common-objects' | 6 | } from './common-objects' |
@@ -24,8 +24,8 @@ export interface VideoTorrentObject { | |||
24 | content: string | 24 | content: string |
25 | icon: ActivityIconObject | 25 | icon: ActivityIconObject |
26 | url: ActivityUrlObject[] | 26 | url: ActivityUrlObject[] |
27 | actor?: string | ||
28 | likes?: ActivityPubOrderedCollection<string> | 27 | likes?: ActivityPubOrderedCollection<string> |
29 | dislikes?: ActivityPubOrderedCollection<string> | 28 | dislikes?: ActivityPubOrderedCollection<string> |
30 | shares?: ActivityPubOrderedCollection<string> | 29 | shares?: ActivityPubOrderedCollection<string> |
30 | attributedTo: ActivityPubAttributedTo[] | ||
31 | } | 31 | } |