From d846501818c2d29e66e6fd141789cb04fd55a437 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 15 Nov 2017 17:56:21 +0100 Subject: Handle announces in inbox --- server/controllers/activitypub/inbox.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server/controllers') diff --git a/server/controllers/activitypub/inbox.ts b/server/controllers/activitypub/inbox.ts index e62125d85..5f47648df 100644 --- a/server/controllers/activitypub/inbox.ts +++ b/server/controllers/activitypub/inbox.ts @@ -5,6 +5,7 @@ import { isActivityValid } from '../../helpers/custom-validators/activitypub/act import { processCreateActivity, processFlagActivity, processUpdateActivity } from '../../lib' import { processAcceptActivity } from '../../lib/activitypub/process-accept' import { processAddActivity } from '../../lib/activitypub/process-add' +import { processAnnounceActivity } from '../../lib/activitypub/process-announce' import { processDeleteActivity } from '../../lib/activitypub/process-delete' import { processFollowActivity } from '../../lib/activitypub/process-follow' import { asyncMiddleware, checkSignature, localAccountValidator, signatureValidator } from '../../middlewares' @@ -18,7 +19,8 @@ const processActivity: { [ P in ActivityType ]: (activity: Activity, inboxAccoun Flag: processFlagActivity, Delete: processDeleteActivity, Follow: processFollowActivity, - Accept: processAcceptActivity + Accept: processAcceptActivity, + Announce: processAnnounceActivity } const inboxRouter = express.Router() -- cgit v1.2.3