Node.js based forum software built for the modern web
fix: handle null actor uri in helpers.query
Julian Lama21110fd882a
diff --git a/src/activitypub/index.js b/src/activitypub/index.jsindex 40370b4981..81f3334e04 100644--- a/src/activitypub/index.js+++ b/src/activitypub/index.js@@ -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);}