From 7bf349b62b8198f268d506da6d2d6ce6c3f7a930 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 24 Jul 2024 11:54:41 -0400 Subject: [PATCH] fix: accidental passing of string instead of constant --- src/activitypub/inbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.js index 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]]');