diff --git a/routes/actor.js b/routes/actor.js index 941adbb..6ceacd1 100644 --- a/routes/actor.js +++ b/routes/actor.js @@ -8,7 +8,7 @@ module.exports = { * @param {express.IRoute} routeObj */ route: (routeObj) => { - routeObj.get((req, res, _next) => { + routeObj.get(async (req, res, _next) => { res.setHeader('content-type', 'application/activity+json'); res.json({ '@context': [ @@ -25,7 +25,7 @@ module.exports = { 'security:owner': { id: `https://${req.hostname}/actor` }, - 'security:publicKeyPem': getKeyPair(`https://${req.hostname}/actor`)["publicKey"] + 'security:publicKeyPem': (await getKeyPair(`https://${req.hostname}/actor`))["publicKey"] }, 'endpoints': { sharedInbox: `https://${req.hostname}/inbox`