mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 09:31:43 -05:00
fix up/down voting (thx @dannyvaughton)
This commit is contained in:
parent
189e97f7c4
commit
1d1a556fb8
1 changed files with 2 additions and 2 deletions
|
@ -11,8 +11,8 @@ Telescope.operateOnItem = function (collection, itemId, user, operation) {
|
|||
|
||||
var item = collection.findOne(itemId);
|
||||
var votePower = Telescope.getVotePower(user);
|
||||
var hasUpvotedItem = user.hasUpvotedItem(item);
|
||||
var hasDownvotedItem = user.hasDownvotedItem(item);
|
||||
var hasUpvotedItem = user.hasUpvoted(item);
|
||||
var hasDownvotedItem = user.hasDownvoted(item);
|
||||
var update = {};
|
||||
|
||||
// console.log(collection)
|
||||
|
|
Loading…
Add table
Reference in a new issue