mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +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') {
|
||||
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 };
|
||||
|
||||
Reference in New Issue
Block a user