From a45f6f9c4cd1014202dd4900051068d87c836cbb Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 15 Oct 2025 12:24:42 -0400 Subject: [PATCH] fix: update getPrivateKey to send application actor key when cid 0 --- src/activitypub/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activitypub/index.js b/src/activitypub/index.js index 5971c69326..7b84148600 100644 --- a/src/activitypub/index.js +++ b/src/activitypub/index.js @@ -201,7 +201,7 @@ ActivityPub.getPrivateKey = async (type, id) => { if (type === 'uid') { keyId = `${nconf.get('url')}${id > 0 ? `/uid/${id}` : '/actor'}#key`; } else { - keyId = `${nconf.get('url')}/category/${id}#key`; + keyId = `${nconf.get('url')}${id > 0 ? `/category/${id}` : '/actor'}#key`; } return { key: privateKey, keyId };