diff options
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) |