aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-23 16:55:13 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-27 19:40:53 +0100
commit16b90975941b78d01d7202d441bf731a10048c16 (patch)
tree11709f51ec79785f32282dfbdd33277af483b2e6 /shared
parentd8553faa4939889fa7b7ef7329aa474a81cbbdb9 (diff)
downloadPeerTube-16b90975941b78d01d7202d441bf731a10048c16.tar.gz
PeerTube-16b90975941b78d01d7202d441bf731a10048c16.tar.zst
PeerTube-16b90975941b78d01d7202d441bf731a10048c16.zip
Fetch video likes/dislikes too
Diffstat (limited to 'shared')
-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}