diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-23 15:09:12 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-23 15:09:12 +0100 |
commit | 285fe7c93072b2a8e6a9af6b7e8ffcdefcffbddf (patch) | |
tree | 198ee1eef4094abc4af73b3ff957c1d3b03210e3 /server/controllers/activitypub/inbox.ts | |
parent | 1ee48d19036199169eca061f1ecccd2f2c8fd359 (diff) | |
download | PeerTube-285fe7c93072b2a8e6a9af6b7e8ffcdefcffbddf.tar.gz PeerTube-285fe7c93072b2a8e6a9af6b7e8ffcdefcffbddf.tar.zst PeerTube-285fe7c93072b2a8e6a9af6b7e8ffcdefcffbddf.zip |
Detect posting request in our own inbox
Diffstat (limited to 'server/controllers/activitypub/inbox.ts')
-rw-r--r-- | server/controllers/activitypub/inbox.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/activitypub/inbox.ts b/server/controllers/activitypub/inbox.ts index 8d65639f8..bd0d7a9c8 100644 --- a/server/controllers/activitypub/inbox.ts +++ b/server/controllers/activitypub/inbox.ts | |||
@@ -12,7 +12,7 @@ const inboxRouter = express.Router() | |||
12 | inboxRouter.post('/inbox', | 12 | inboxRouter.post('/inbox', |
13 | signatureValidator, | 13 | signatureValidator, |
14 | asyncMiddleware(checkSignature), | 14 | asyncMiddleware(checkSignature), |
15 | activityPubValidator, | 15 | asyncMiddleware(activityPubValidator), |
16 | asyncMiddleware(inboxController) | 16 | asyncMiddleware(inboxController) |
17 | ) | 17 | ) |
18 | 18 | ||
@@ -20,7 +20,7 @@ inboxRouter.post('/accounts/:name/inbox', | |||
20 | signatureValidator, | 20 | signatureValidator, |
21 | asyncMiddleware(checkSignature), | 21 | asyncMiddleware(checkSignature), |
22 | localAccountValidator, | 22 | localAccountValidator, |
23 | activityPubValidator, | 23 | asyncMiddleware(activityPubValidator), |
24 | asyncMiddleware(inboxController) | 24 | asyncMiddleware(inboxController) |
25 | ) | 25 | ) |
26 | 26 | ||