mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
@@ -255,10 +255,12 @@ define('forum/topic/postTools', ['share', 'navigator', 'components', 'translator
|
||||
pid: post.attr('data-pid'),
|
||||
room_id: app.currentRoom
|
||||
}, function(err) {
|
||||
if (err.message === 'self-vote') {
|
||||
showVotes(post.attr('data-pid'));
|
||||
} else {
|
||||
app.alertError(err.message);
|
||||
if (err) {
|
||||
if (err.message === 'self-vote') {
|
||||
showVotes(post.attr('data-pid'));
|
||||
} else {
|
||||
app.alertError(err.message);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user