diff options
Diffstat (limited to 'shared/models/activitypub')
-rw-r--r-- | shared/models/activitypub/activity.ts | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/shared/models/activitypub/activity.ts b/shared/models/activitypub/activity.ts index 255cdd43c..3d035d7d7 100644 --- a/shared/models/activitypub/activity.ts +++ b/shared/models/activitypub/activity.ts | |||
@@ -3,10 +3,10 @@ import { ActivityPubSignature } from './activitypub-signature' | |||
3 | import { VideoAbuseObject } from './objects/video-abuse-object' | 3 | import { VideoAbuseObject } from './objects/video-abuse-object' |
4 | 4 | ||
5 | export type Activity = ActivityCreate | ActivityAdd | ActivityUpdate | | 5 | export type Activity = ActivityCreate | ActivityAdd | ActivityUpdate | |
6 | ActivityDelete | ActivityFollow | ActivityAccept | ActivityAnnounce | 6 | ActivityDelete | ActivityFollow | ActivityAccept | ActivityAnnounce | |
7 | ActivityUndo | ||
7 | 8 | ||
8 | // Flag -> report abuse | 9 | export type ActivityType = 'Create' | 'Add' | 'Update' | 'Delete' | 'Follow' | 'Accept' | 'Announce' | 'Undo' |
9 | export type ActivityType = 'Create' | 'Add' | 'Update' | 'Delete' | 'Follow' | 'Accept' | 'Announce' | ||
10 | 10 | ||
11 | export interface BaseActivity { | 11 | export interface BaseActivity { |
12 | '@context'?: any[] | 12 | '@context'?: any[] |
@@ -51,3 +51,8 @@ export interface ActivityAnnounce extends BaseActivity { | |||
51 | type: 'Announce' | 51 | type: 'Announce' |
52 | object: ActivityCreate | ActivityAdd | 52 | object: ActivityCreate | ActivityAdd |
53 | } | 53 | } |
54 | |||
55 | export interface ActivityUndo extends BaseActivity { | ||
56 | type: 'Undo', | ||
57 | object: ActivityFollow | ||
58 | } | ||