mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-14 19:13:29 +02:00
feat: min:rep:upvote, and other limits similar to downvotes
closes #10380
This commit is contained in:
@@ -226,7 +226,7 @@ module.exports = function (User) {
|
||||
}
|
||||
const reputation = await User.getUserField(uid, 'reputation');
|
||||
if (reputation < meta.config[setting]) {
|
||||
throw new Error(`[[error:not-enough-reputation-${setting.replace(/:/g, '-')}]]`);
|
||||
throw new Error(`[[error:not-enough-reputation-${setting.replace(/:/g, '-')}, ${meta.config[setting]}]]`);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user