fixed - upvote/downvote

The issue was that the cancelDownvote() had was checking if there were any upvotes!

Now its working like a charm.
This commit is contained in:
Sadi 2014-06-17 14:34:07 +03:00
parent 2d9a779ec6
commit 80a482e505

View file

@ -120,7 +120,7 @@
votePower = getVotePower(user);
// if user isn't among the downvoters, abort
if(!hasUpvotedItem(item, user))
if(!hasDownvotedItem(item, user))
return false;
// Votes & Score