aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/activitypub
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/activitypub')
-rw-r--r--shared/models/activitypub/activitypub-ordered-collection.ts4
-rw-r--r--shared/models/activitypub/activitypub-root.ts2
-rw-r--r--shared/models/activitypub/objects/video-torrent-object.ts3
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 @@
1import { Activity } from './activity' 1import { Activity } from './activity'
2 2
3export interface ActivityPubOrderedCollection { 3export 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'
2import { ActivityPubCollection } from './activitypub-collection' 2import { ActivityPubCollection } from './activitypub-collection'
3import { ActivityPubOrderedCollection } from './activitypub-ordered-collection' 3import { ActivityPubOrderedCollection } from './activitypub-ordered-collection'
4 4
5export type RootActivity = Activity | ActivityPubCollection | ActivityPubOrderedCollection 5export 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'
7import { ActivityPubOrderedCollection } from '../activitypub-ordered-collection'
7 8
8export interface VideoTorrentObject { 9export 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}