aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/activitypub
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-23 15:09:12 +0100
committerChocobozzz <me@florianbigard.com>2018-02-23 15:09:12 +0100
commit285fe7c93072b2a8e6a9af6b7e8ffcdefcffbddf (patch)
tree198ee1eef4094abc4af73b3ff957c1d3b03210e3 /server/controllers/activitypub
parent1ee48d19036199169eca061f1ecccd2f2c8fd359 (diff)
downloadPeerTube-285fe7c93072b2a8e6a9af6b7e8ffcdefcffbddf.tar.gz
PeerTube-285fe7c93072b2a8e6a9af6b7e8ffcdefcffbddf.tar.zst
PeerTube-285fe7c93072b2a8e6a9af6b7e8ffcdefcffbddf.zip
Detect posting request in our own inbox
Diffstat (limited to 'server/controllers/activitypub')
-rw-r--r--server/controllers/activitypub/inbox.ts4
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()
12inboxRouter.post('/inbox', 12inboxRouter.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