From 4bbc373f134ecbf53f0198277663a25b26a19cc8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 11 Jan 2018 17:37:49 +0100 Subject: Add reject processing for activitypub --- shared/models/activitypub/activity.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'shared/models/activitypub') 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' export type Activity = ActivityCreate | ActivityUpdate | ActivityDelete | ActivityFollow | ActivityAccept | ActivityAnnounce | - ActivityUndo | ActivityLike + ActivityUndo | ActivityLike | ActivityReject -export type ActivityType = 'Create' | 'Update' | 'Delete' | 'Follow' | 'Accept' | 'Announce' | 'Undo' | 'Like' +export type ActivityType = 'Create' | 'Update' | 'Delete' | 'Follow' | 'Accept' | 'Announce' | 'Undo' | 'Like' | 'Reject' export interface ActivityAudience { to: string[] @@ -52,6 +52,11 @@ export interface ActivityAccept extends BaseActivity { object: ActivityFollow } +export interface ActivityReject extends BaseActivity { + type: 'Reject' + object: ActivityFollow +} + export interface ActivityAnnounce extends BaseActivity { type: 'Announce' object: ActivityCreate | string -- cgit v1.2.3