mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
action:post.upvote / action:post.downvote now sends current status; new: action:post.unvote
This commit is contained in:
@@ -115,7 +115,7 @@ function favouriteCommand(command, eventName, socket, data, callback) {
|
||||
return callback(new Error('[[error:post-deleted]]'));
|
||||
}
|
||||
|
||||
favourites[command](data.pid, socket.uid, function(err, result) {
|
||||
favourites[command](data.pid, socket.uid, command, function(err, result) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user