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 };