mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
feat: allow user auto-categorization rule
This commit is contained in:
@@ -417,6 +417,13 @@ async function assignCategory(post) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case 'user': {
|
||||
if (post.uid === value) {
|
||||
activitypub.helpers.log(`[activitypub] - Rule match: user ${value}; cid: ${target}`);
|
||||
return target;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user