diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-11 17:37:49 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-11 17:45:57 +0100 |
commit | 4bbc373f134ecbf53f0198277663a25b26a19cc8 (patch) | |
tree | 77bb92e0f7003fcdf0746695d314bfaf19625daa /shared/models/activitypub | |
parent | cfe1efd200f80239e19f94335364ac9ef3813c19 (diff) | |
download | PeerTube-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.ts | 9 |
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 | ||
9 | export type Activity = ActivityCreate | ActivityUpdate | | 9 | export type Activity = ActivityCreate | ActivityUpdate | |
10 | ActivityDelete | ActivityFollow | ActivityAccept | ActivityAnnounce | | 10 | ActivityDelete | ActivityFollow | ActivityAccept | ActivityAnnounce | |
11 | ActivityUndo | ActivityLike | 11 | ActivityUndo | ActivityLike | ActivityReject |
12 | 12 | ||
13 | export type ActivityType = 'Create' | 'Update' | 'Delete' | 'Follow' | 'Accept' | 'Announce' | 'Undo' | 'Like' | 13 | export type ActivityType = 'Create' | 'Update' | 'Delete' | 'Follow' | 'Accept' | 'Announce' | 'Undo' | 'Like' | 'Reject' |
14 | 14 | ||
15 | export interface ActivityAudience { | 15 | export 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 | ||
55 | export interface ActivityReject extends BaseActivity { | ||
56 | type: 'Reject' | ||
57 | object: ActivityFollow | ||
58 | } | ||
59 | |||
55 | export interface ActivityAnnounce extends BaseActivity { | 60 | export interface ActivityAnnounce extends BaseActivity { |
56 | type: 'Announce' | 61 | type: 'Announce' |
57 | object: ActivityCreate | string | 62 | object: ActivityCreate | string |