diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-15 11:00:25 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:51 +0100 |
commit | 608624252466acf9f1d9ee1c1170bd4fe4d18d18 (patch) | |
tree | 47eab55bb5421b7fe88e0b2ac743a436fd9561cf /server/middlewares/activitypub.ts | |
parent | 51548b31815c6f96f314ae96588a9adca150519d (diff) | |
download | PeerTube-608624252466acf9f1d9ee1c1170bd4fe4d18d18.tar.gz PeerTube-608624252466acf9f1d9ee1c1170bd4fe4d18d18.tar.zst PeerTube-608624252466acf9f1d9ee1c1170bd4fe4d18d18.zip |
Rename Pod -> Server
Diffstat (limited to 'server/middlewares/activitypub.ts')
-rw-r--r-- | server/middlewares/activitypub.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/middlewares/activitypub.ts b/server/middlewares/activitypub.ts index bed2bfeab..0ea522e5c 100644 --- a/server/middlewares/activitypub.ts +++ b/server/middlewares/activitypub.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { NextFunction, Request, Response, RequestHandler } from 'express' | 1 | import { NextFunction, Request, Response, RequestHandler } from 'express' |
2 | import { ActivityPubSignature } from '../../shared' | 2 | import { ActivityPubSignature } from '../../shared' |
3 | import { isSignatureVerified, logger } from '../helpers' | 3 | import { isSignatureVerified, logger } from '../helpers' |
4 | import { fetchRemoteAccountAndCreatePod } from '../helpers/activitypub' | 4 | import { fetchRemoteAccountAndCreateServer } from '../helpers/activitypub' |
5 | import { database as db, ACTIVITY_PUB_ACCEPT_HEADER } from '../initializers' | 5 | import { database as db, ACTIVITY_PUB_ACCEPT_HEADER } from '../initializers' |
6 | import { each, eachSeries, waterfall } from 'async' | 6 | import { each, eachSeries, waterfall } from 'async' |
7 | 7 | ||
@@ -14,7 +14,7 @@ async function checkSignature (req: Request, res: Response, next: NextFunction) | |||
14 | 14 | ||
15 | // We don't have this account in our database, fetch it on remote | 15 | // We don't have this account in our database, fetch it on remote |
16 | if (!account) { | 16 | if (!account) { |
17 | const accountResult = await fetchRemoteAccountAndCreatePod(signatureObject.creator) | 17 | const accountResult = await fetchRemoteAccountAndCreateServer(signatureObject.creator) |
18 | 18 | ||
19 | if (!accountResult) { | 19 | if (!accountResult) { |
20 | return res.sendStatus(403) | 20 | return res.sendStatus(403) |