mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: accidental passing of string instead of constant
This commit is contained in:
@@ -319,7 +319,7 @@ inbox.follow = async (req) => {
|
|||||||
} else if (type === 'category') {
|
} else if (type === 'category') {
|
||||||
const [exists, allowed] = await Promise.all([
|
const [exists, allowed] = await Promise.all([
|
||||||
categories.exists(id),
|
categories.exists(id),
|
||||||
privileges.categories.can('read', id, 'activitypub._constants.uid'),
|
privileges.categories.can('read', id, activitypub._constants.uid),
|
||||||
]);
|
]);
|
||||||
if (!exists) {
|
if (!exists) {
|
||||||
throw new Error('[[error:invalid-cid]]');
|
throw new Error('[[error:invalid-cid]]');
|
||||||
|
|||||||
Reference in New Issue
Block a user