fix: update getPrivateKey to send application actor key when cid 0

This commit is contained in:
Julian Lam
2025-10-15 12:24:42 -04:00
parent 58a9e1c4f9
commit a45f6f9c4c

View File

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