mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 19:21:04 +01:00
Removed cant-vote-self-post
As suggested in nodebb/nodebb-theme-persona#203, a positive action has been applied when a user attempts to upvote their own post. It will now open the upvoters modal instead of throwing an alertError. Closes nodebb/nodebb-theme-persona#203
This commit is contained in:
@@ -204,7 +204,7 @@ var async = require('async'),
|
||||
}
|
||||
|
||||
if (parseInt(uid, 10) === parseInt(results.owner, 10)) {
|
||||
return callback(new Error('[[error:cant-vote-self-post]]'));
|
||||
return callback(new Error('self-vote'));
|
||||
}
|
||||
|
||||
var voteStatus = results.voteStatus,
|
||||
|
||||
Reference in New Issue
Block a user