aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/activitypub/activity.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/activitypub/activity.ts')
-rw-r--r--shared/models/activitypub/activity.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/shared/models/activitypub/activity.ts b/shared/models/activitypub/activity.ts
index 0274416b2..dc562c00a 100644
--- a/shared/models/activitypub/activity.ts
+++ b/shared/models/activitypub/activity.ts
@@ -7,7 +7,7 @@ import { ActivityPubSignature } from './activitypub-signature'
7export type Activity = ActivityCreate | ActivityUpdate | ActivityFlag 7export type Activity = ActivityCreate | ActivityUpdate | ActivityFlag
8 8
9// Flag -> report abuse 9// Flag -> report abuse
10export type ActivityType = 'Create' | 'Update' | 'Flag' 10export type ActivityType = 'Create' | 'Add' | 'Update' | 'Flag'
11 11
12export interface BaseActivity { 12export interface BaseActivity {
13 '@context'?: any[] 13 '@context'?: any[]
@@ -20,7 +20,12 @@ export interface BaseActivity {
20 20
21export interface ActivityCreate extends BaseActivity { 21export interface ActivityCreate extends BaseActivity {
22 type: 'Create' 22 type: 'Create'
23 object: VideoTorrentObject | VideoChannelObject 23 object: VideoChannelObject
24}
25
26export interface ActivityAdd extends BaseActivity {
27 type: 'Add'
28 object: VideoTorrentObject
24} 29}
25 30
26export interface ActivityUpdate extends BaseActivity { 31export interface ActivityUpdate extends BaseActivity {