This commit is contained in:
Muhammad Osama Arshad
2017-11-22 09:50:58 +05:00
parent 86a4fd6c92
commit 64895310a9
3 changed files with 3 additions and 6 deletions

View File

@@ -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)) {