mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 09:25:45 +01:00
fix #5973
This commit is contained in:
@@ -153,7 +153,7 @@ module.exports = function (Posts) {
|
||||
},
|
||||
function (results, next) {
|
||||
if (parseInt(uid, 10) === parseInt(results.owner, 10)) {
|
||||
return callback(new Error('self-vote'));
|
||||
return callback(new Error('[[error:self-vote]]'));
|
||||
}
|
||||
|
||||
if (command === 'downvote' && parseInt(results.reputation, 10) < parseInt(meta.config['privileges:downvote'], 10)) {
|
||||
|
||||
Reference in New Issue
Block a user