aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/activitypub.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/activitypub.ts')
-rw-r--r--server/middlewares/activitypub.ts4
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 @@
1import { NextFunction, Request, Response, RequestHandler } from 'express' 1import { NextFunction, Request, Response, RequestHandler } from 'express'
2import { ActivityPubSignature } from '../../shared' 2import { ActivityPubSignature } from '../../shared'
3import { isSignatureVerified, logger } from '../helpers' 3import { isSignatureVerified, logger } from '../helpers'
4import { fetchRemoteAccountAndCreatePod } from '../helpers/activitypub' 4import { fetchRemoteAccountAndCreateServer } from '../helpers/activitypub'
5import { database as db, ACTIVITY_PUB_ACCEPT_HEADER } from '../initializers' 5import { database as db, ACTIVITY_PUB_ACCEPT_HEADER } from '../initializers'
6import { each, eachSeries, waterfall } from 'async' 6import { 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)