diff options
-rw-r--r-- | server/lib/activitypub/fetch.ts | 2 | ||||
-rw-r--r-- | server/middlewares/validators/activitypub/activity.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/activitypub/fetch.ts b/server/lib/activitypub/fetch.ts index 549791f14..a8eefff80 100644 --- a/server/lib/activitypub/fetch.ts +++ b/server/lib/activitypub/fetch.ts | |||
@@ -8,7 +8,7 @@ async function addFetchOutboxJob (actor: ActorModel) { | |||
8 | const serverActor = await getServerActor() | 8 | const serverActor = await getServerActor() |
9 | if (serverActor.id === actor.id) { | 9 | if (serverActor.id === actor.id) { |
10 | logger.error('Cannot fetch our own outbox!') | 10 | logger.error('Cannot fetch our own outbox!') |
11 | return | 11 | return undefined |
12 | } | 12 | } |
13 | 13 | ||
14 | const payload = { | 14 | const payload = { |
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() |