Node.js based forum software built for the modern web
fix: accidental passing of string instead of constant
Julian Lam7bf349b62b81
diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.jsindex 72ecb0412b..2549affc7b 100644--- a/src/activitypub/inbox.js+++ b/src/activitypub/inbox.js@@ -319,7 +319,7 @@ inbox.follow = async (req) => {} else if (type === 'category') {const [exists, allowed] = await Promise.all([categories.exists(id),- privileges.categories.can('read', id, 'activitypub._constants.uid'),+ privileges.categories.can('read', id, activitypub._constants.uid),]);if (!exists) {throw new Error('[[error:invalid-cid]]');