aboutsummaryrefslogtreecommitdiffhomepage
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
parent72680feb3442671b88d0b7e40585568678528470 (diff)
downloadPeerTube-e3bb78a2134a5e5755b6dbd8987894572ca31269.tar.gz
PeerTube-e3bb78a2134a5e5755b6dbd8987894572ca31269.tar.zst
PeerTube-e3bb78a2134a5e5755b6dbd8987894572ca31269.zip
Fix lint
-rw-r--r--server/lib/activitypub/fetch.ts2
-rw-r--r--server/middlewares/validators/activitypub/activity.ts2
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()