Skip to content

Node.js based forum software built for the modern web

fix: response, not res

Julian Lam9e58b04c4edc
diff --git a/src/activitypub/index.js b/src/activitypub/index.js
index 791472456e..bfca23ce07 100644
--- a/src/activitypub/index.js
+++ b/src/activitypub/index.js
@@ -89,13 +89,13 @@ ActivityPub.getPrivateKey = async (uid) => {
ActivityPub.fetchPublicKey = async (uri) => {
// Used for retrieving the public key from the passed-in keyId uri
- const { res, body } = await request.get(uri, {
+ const { response, body } = await request.get(uri, {
headers: {
Accept: 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
},
});
- if (!String(res.statusCode).startsWith('2') || !body.hasOwnProperty('publicKey')) {
+ if (!String(response.statusCode).startsWith('2') || !body.hasOwnProperty('publicKey')) {
throw new Error('[[error:activitypub.pubKey-not-found]]');
}