aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/activitypub
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-11 17:37:49 +0100
committerChocobozzz <me@florianbigard.com>2018-01-11 17:45:57 +0100
commit4bbc373f134ecbf53f0198277663a25b26a19cc8 (patch)
tree77bb92e0f7003fcdf0746695d314bfaf19625daa /shared/models/activitypub
parentcfe1efd200f80239e19f94335364ac9ef3813c19 (diff)
downloadPeerTube-4bbc373f134ecbf53f0198277663a25b26a19cc8.tar.gz
PeerTube-4bbc373f134ecbf53f0198277663a25b26a19cc8.tar.zst
PeerTube-4bbc373f134ecbf53f0198277663a25b26a19cc8.zip
Add reject processing for activitypub
Diffstat (limited to 'shared/models/activitypub')
-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