mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
fix: update getPrivateKey to send application actor key when cid 0
This commit is contained in:
@@ -201,7 +201,7 @@ ActivityPub.getPrivateKey = async (type, id) => {
|
|||||||
if (type === 'uid') {
|
if (type === 'uid') {
|
||||||
keyId = `${nconf.get('url')}${id > 0 ? `/uid/${id}` : '/actor'}#key`;
|
keyId = `${nconf.get('url')}${id > 0 ? `/uid/${id}` : '/actor'}#key`;
|
||||||
} else {
|
} else {
|
||||||
keyId = `${nconf.get('url')}/category/${id}#key`;
|
keyId = `${nconf.get('url')}${id > 0 ? `/category/${id}` : '/actor'}#key`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return { key: privateKey, keyId };
|
return { key: privateKey, keyId };
|
||||||
|
|||||||
Reference in New Issue
Block a user