diff options
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/activitypub/activitypub-ordered-collection.ts | 4 | ||||
-rw-r--r-- | shared/models/activitypub/activitypub-root.ts | 2 | ||||
-rw-r--r-- | shared/models/activitypub/objects/video-torrent-object.ts | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/shared/models/activitypub/activitypub-ordered-collection.ts b/shared/models/activitypub/activitypub-ordered-collection.ts index 4080fd740..487d8cee0 100644 --- a/shared/models/activitypub/activitypub-ordered-collection.ts +++ b/shared/models/activitypub/activitypub-ordered-collection.ts | |||
@@ -1,9 +1,9 @@ | |||
1 | import { Activity } from './activity' | 1 | import { Activity } from './activity' |
2 | 2 | ||
3 | export interface ActivityPubOrderedCollection { | 3 | export interface ActivityPubOrderedCollection<T> { |
4 | '@context': string[] | 4 | '@context': string[] |
5 | type: 'OrderedCollection' | 'OrderedCollectionPage' | 5 | type: 'OrderedCollection' | 'OrderedCollectionPage' |
6 | totalItems: number | 6 | totalItems: number |
7 | partOf?: string | 7 | partOf?: string |
8 | orderedItems: Activity[] | 8 | orderedItems: T[] |
9 | } | 9 | } |
diff --git a/shared/models/activitypub/activitypub-root.ts b/shared/models/activitypub/activitypub-root.ts index 6a67f3101..22dff83a2 100644 --- a/shared/models/activitypub/activitypub-root.ts +++ b/shared/models/activitypub/activitypub-root.ts | |||
@@ -2,4 +2,4 @@ import { Activity } from './activity' | |||
2 | import { ActivityPubCollection } from './activitypub-collection' | 2 | import { ActivityPubCollection } from './activitypub-collection' |
3 | import { ActivityPubOrderedCollection } from './activitypub-ordered-collection' | 3 | import { ActivityPubOrderedCollection } from './activitypub-ordered-collection' |
4 | 4 | ||
5 | export type RootActivity = Activity | ActivityPubCollection | ActivityPubOrderedCollection | 5 | export type RootActivity = Activity | ActivityPubCollection | ActivityPubOrderedCollection<Activity> |
diff --git a/shared/models/activitypub/objects/video-torrent-object.ts b/shared/models/activitypub/objects/video-torrent-object.ts index ae8f807c8..a4e032d04 100644 --- a/shared/models/activitypub/objects/video-torrent-object.ts +++ b/shared/models/activitypub/objects/video-torrent-object.ts | |||
@@ -4,6 +4,7 @@ import { | |||
4 | ActivityTagObject, | 4 | ActivityTagObject, |
5 | ActivityUrlObject | 5 | ActivityUrlObject |
6 | } from './common-objects' | 6 | } from './common-objects' |
7 | import { ActivityPubOrderedCollection } from '../activitypub-ordered-collection' | ||
7 | 8 | ||
8 | export interface VideoTorrentObject { | 9 | export interface VideoTorrentObject { |
9 | type: 'Video' | 10 | type: 'Video' |
@@ -24,4 +25,6 @@ export interface VideoTorrentObject { | |||
24 | icon: ActivityIconObject | 25 | icon: ActivityIconObject |
25 | url: ActivityUrlObject[] | 26 | url: ActivityUrlObject[] |
26 | actor?: string | 27 | actor?: string |
28 | likes?: ActivityPubOrderedCollection<string> | ||
29 | dislikes?: ActivityPubOrderedCollection<string> | ||
27 | } | 30 | } |