diff options
Diffstat (limited to 'server/middlewares')
-rw-r--r-- | server/middlewares/validators/activitypub/activity.ts | 2 |
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() |