diff options
Diffstat (limited to 'shared/models/activitypub/activity.ts')
-rw-r--r-- | shared/models/activitypub/activity.ts | 9 |
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' | |||
7 | export type Activity = ActivityCreate | ActivityUpdate | ActivityFlag | 7 | export type Activity = ActivityCreate | ActivityUpdate | ActivityFlag |
8 | 8 | ||
9 | // Flag -> report abuse | 9 | // Flag -> report abuse |
10 | export type ActivityType = 'Create' | 'Update' | 'Flag' | 10 | export type ActivityType = 'Create' | 'Add' | 'Update' | 'Flag' |
11 | 11 | ||
12 | export interface BaseActivity { | 12 | export interface BaseActivity { |
13 | '@context'?: any[] | 13 | '@context'?: any[] |
@@ -20,7 +20,12 @@ export interface BaseActivity { | |||
20 | 20 | ||
21 | export interface ActivityCreate extends BaseActivity { | 21 | export interface ActivityCreate extends BaseActivity { |
22 | type: 'Create' | 22 | type: 'Create' |
23 | object: VideoTorrentObject | VideoChannelObject | 23 | object: VideoChannelObject |
24 | } | ||
25 | |||
26 | export interface ActivityAdd extends BaseActivity { | ||
27 | type: 'Add' | ||
28 | object: VideoTorrentObject | ||
24 | } | 29 | } |
25 | 30 | ||
26 | export interface ActivityUpdate extends BaseActivity { | 31 | export interface ActivityUpdate extends BaseActivity { |