aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-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 8cede49a0..aa25db446 100644
--- a/shared/models/activitypub/activity.ts
+++ b/shared/models/activitypub/activity.ts
@@ -8,9 +8,9 @@ import { ViewObject } from './objects/view-object'
8 8
9export type Activity = ActivityCreate | ActivityUpdate | 9export type Activity = ActivityCreate | ActivityUpdate |
10 ActivityDelete | ActivityFollow | ActivityAccept | ActivityAnnounce | 10 ActivityDelete | ActivityFollow | ActivityAccept | ActivityAnnounce |
11 ActivityUndo | ActivityLike 11 ActivityUndo | ActivityLike | ActivityReject
12 12
13export type ActivityType = 'Create' | 'Update' | 'Delete' | 'Follow' | 'Accept' | 'Announce' | 'Undo' | 'Like' 13export type ActivityType = 'Create' | 'Update' | 'Delete' | 'Follow' | 'Accept' | 'Announce' | 'Undo' | 'Like' | 'Reject'
14 14
15export interface ActivityAudience { 15export interface ActivityAudience {
16 to: string[] 16 to: string[]
@@ -52,6 +52,11 @@ export interface ActivityAccept extends BaseActivity {
52 object: ActivityFollow 52 object: ActivityFollow
53} 53}
54 54
55export interface ActivityReject extends BaseActivity {
56 type: 'Reject'
57 object: ActivityFollow
58}
59
55export interface ActivityAnnounce extends BaseActivity { 60export interface ActivityAnnounce extends BaseActivity {
56 type: 'Announce' 61 type: 'Announce'
57 object: ActivityCreate | string 62 object: ActivityCreate | string