aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/activitypub/activity.ts11
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'
3import { VideoAbuseObject } from './objects/video-abuse-object' 3import { VideoAbuseObject } from './objects/video-abuse-object'
4 4
5export type Activity = ActivityCreate | ActivityAdd | ActivityUpdate | 5export type Activity = ActivityCreate | ActivityAdd | ActivityUpdate |
6 ActivityDelete | ActivityFollow | ActivityAccept | ActivityAnnounce 6 ActivityDelete | ActivityFollow | ActivityAccept | ActivityAnnounce |
7 ActivityUndo
7 8
8// Flag -> report abuse 9export type ActivityType = 'Create' | 'Add' | 'Update' | 'Delete' | 'Follow' | 'Accept' | 'Announce' | 'Undo'
9export type ActivityType = 'Create' | 'Add' | 'Update' | 'Delete' | 'Follow' | 'Accept' | 'Announce'
10 10
11export interface BaseActivity { 11export 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
55export interface ActivityUndo extends BaseActivity {
56 type: 'Undo',
57 object: ActivityFollow
58}