aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-23 16:08:32 +0100
committerChocobozzz <me@florianbigard.com>2018-02-23 16:08:32 +0100
commite3bb78a2134a5e5755b6dbd8987894572ca31269 (patch)
tree13ce9ac0fa17301a3df4d8851ddac116a87c84f2 /server/middlewares
parent72680feb3442671b88d0b7e40585568678528470 (diff)
downloadPeerTube-e3bb78a2134a5e5755b6dbd8987894572ca31269.tar.gz
PeerTube-e3bb78a2134a5e5755b6dbd8987894572ca31269.tar.zst
PeerTube-e3bb78a2134a5e5755b6dbd8987894572ca31269.zip
Fix lint
Diffstat (limited to 'server/middlewares')
-rw-r--r--server/middlewares/validators/activitypub/activity.ts2
1 files changed, 1 insertions, 1 deletions
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 = [
18 const remoteActor = res.locals.signature.actor as ActorModel 18 const remoteActor = res.locals.signature.actor as ActorModel
19 if (serverActor.id === remoteActor.id) { 19 if (serverActor.id === remoteActor.id) {
20 logger.error('Receiving request in INBOX by ourselves!', req.body) 20 logger.error('Receiving request in INBOX by ourselves!', req.body)
21 return res.sendStatus(409) 21 return res.status(409).end()
22 } 22 }
23 23
24 return next() 24 return next()