mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: handle null actor uri in helpers.query
This commit is contained in:
@@ -31,6 +31,10 @@ ActivityPub.getActor = async (input) => {
|
||||
throw new Error('[[error:invalid-data]]');
|
||||
}
|
||||
|
||||
if (!uri) {
|
||||
throw new Error('[[error:invalid-uid]]');
|
||||
}
|
||||
|
||||
if (actorCache.has(uri)) {
|
||||
return actorCache.get(uri);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user