Node.js based forum software built for the modern web
Revert "fix: don't sign outgoing gets if id is 0"
Julian Lam8e61543b0ae1
diff --git a/src/activitypub/index.js b/src/activitypub/index.jsindex 7ef95d62b5..b17799b92e 100644--- a/src/activitypub/index.js+++ b/src/activitypub/index.js@@ -343,12 +343,8 @@ ActivityPub.get = async (type, id, uri, options) => {return cached;}- let headers = {};- if (parseInt(id, 10) > 0) {- const keyData = await ActivityPub.getPrivateKey(type, id);- headers = id >= 0 ? await ActivityPub.sign(keyData, uri) : {};- }-+ const keyData = await ActivityPub.getPrivateKey(type, id);+ const headers = id >= 0 ? await ActivityPub.sign(keyData, uri) : {};ActivityPub.helpers.log(`[activitypub/get] ${uri}`);try {const { response, body } = await request.get(uri, {