From e3bb78a2134a5e5755b6dbd8987894572ca31269 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 23 Feb 2018 16:08:32 +0100 Subject: Fix lint --- server/middlewares/validators/activitypub/activity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/middlewares/validators') diff --git a/server/middlewares/validators/activitypub/activity.ts b/server/middlewares/validators/activitypub/activity.ts index 15e8bb079..8c2920328 100644 --- a/server/middlewares/validators/activitypub/activity.ts +++ b/server/middlewares/validators/activitypub/activity.ts @@ -18,7 +18,7 @@ const activityPubValidator = [ const remoteActor = res.locals.signature.actor as ActorModel if (serverActor.id === remoteActor.id) { logger.error('Receiving request in INBOX by ourselves!', req.body) - return res.sendStatus(409) + return res.status(409).end() } return next() -- cgit v1.2.3