Fabrice Delhoste
9bd8517e8a
Prevent invalid up/downvotes when concurrent requests
...
Do not update up/downvotes counters server-side when up/downvoters have
been modified in the meantime. Ex: concurrent upvote and cancelUpvote
HTTP requests at once, when the user clicks button several times in a
row.
2014-09-19 21:47:58 +02:00
Mitchell Wulfman
6fc6b9eb78
cleanup while getting familiar with the codebase
2014-09-16 15:18:27 -04:00
Sacha Greif
735f0645db
move votes to their own object on user object
2014-08-23 11:53:37 +09:00
Sacha Greif
509972f18a
Now keeping track of upvoted/downvoted posts & comments.
2014-08-11 10:14:53 +09:00
Sacha Greif
77d572345b
removing a few console.logs
2014-06-25 14:33:41 +09:00
Sacha Greif
d29e613f7d
Get rid of superfluous check
2014-06-22 11:32:35 +09:00
Sacha Greif
738857a51e
Merge branch 'master' into autoform
...
Conflicts:
client/views/posts/post_page.js
2014-06-22 08:58:18 +09:00
Sadi
80a482e505
fixed - upvote/downvote
...
The issue was that the cancelDownvote() had was checking if there were any upvotes!
Now its working like a charm.
2014-06-17 14:34:07 +03:00
Sacha Greif
e0ff3f71fc
Counting up votes and down votes with two separate properties instead of a single "votes" property
2014-05-15 15:56:23 +09:00
Mike Carson
2237994555
fix for downvoting comments
2014-05-08 19:35:24 -04:00
Christian Bundy
86ec3ede93
Solve trivial JS errors
...
Using jshint and and fixmyjs I went through and removed 220 trivial
Javascript errors – mostly missing semicolons, and some properties that
weren’t written in dot notation. You can view the diff of jshint’s
output here:
https://gist.github.com/christianbundy/7b37c51bb6f7c8d739e7/revisions
2014-05-06 20:15:48 -07:00
Ankur Patel
81ced52a99
Best practice to pass object than to check for optional parameter value
2014-01-25 14:11:26 -05:00
Sacha Greif
1b6072e114
fixing updateScore syntax
2013-11-12 08:23:15 +09:00
Tarang Patel
b38c6cda3f
Fix downvoting, cancelling upvoting & cancelling downvoting
...
Additionally removed the `(function() {})();` encapsulation since Meteor already adds this in since they started scoping files
2013-11-11 23:06:12 +02:00
Sacha Greif
c164e67572
enable karma redistribution
2013-11-08 10:12:00 +09:00
Sacha Greif
1253f1563e
extending post item to calculate score
2013-10-29 18:02:10 +09:00
Sacha Greif
b7f4fb38e8
add _id property to post object
2013-10-29 17:54:45 +09:00
Sacha Greif
5c3aee060c
reworking animations
2013-10-29 15:47:20 +09:00
Sacha Greif
3edfb38032
clean up upvoting/downvoting/scoring code
2013-10-29 15:06:50 +09:00
Sacha Greif
c97e7ea443
fixed karma
2013-10-29 13:39:28 +09:00
Sacha Greif
9b441c1048
make scoring client-side too for latency compensation
2013-10-29 13:30:35 +09:00
Peter Coles
1e2750bb28
make upvote cleanup prior downvote and vice-versa
2013-05-19 16:26:42 -04:00
Sacha Greif
59e1304c72
still cleaning up files
2013-04-13 15:10:07 +09:00
Sacha Greif
3f180f027b
added rate limiting to posts and comments posting
2012-10-06 13:15:55 +09:00
Sacha Greif
1c2056d2f8
perfected permission and redirection system
2012-10-05 22:46:20 +09:00
Sacha Greif
7419ff2cb0
adding canView to permissions
2012-10-05 14:08:46 +09:00
Tom Coleman
4edc7513c5
Best to test things before pushing.
2012-10-04 12:33:15 +10:00
Tom Coleman
973b17cb09
Updated vote.js to use approved (and some minor clean up)
2012-10-04 12:31:02 +10:00
Sacha Greif
d974d26ece
using $addToSet instead of $push
2012-09-29 17:23:13 +09:00
Sacha Greif
a467225da1
refactoring vote.js and put this.isSimulation back in
...
Woops, turns out this.isSimulation is useful after all!
Also, I tried to simplify the code of vote.js. I especially tried to
get rid of the double inequalities, and took the voting validation code
out of the update call.
2012-09-29 14:14:57 +09:00
Sacha Greif
f25d7a619a
remove this.isSimulation checks in vote.js
2012-09-29 13:54:47 +09:00
Sacha Greif
75c8a86f4a
refactoring vote.js
2012-09-29 13:51:55 +09:00
Julien Chaumond
23fccbd082
Fix bad karma
2012-09-28 15:07:25 +02:00
Sacha Greif
0e16290807
removed console.log call
2012-09-28 10:09:57 +09:00
Sacha Greif
ef38173975
added karma increase/decrease back in
2012-09-28 09:57:03 +09:00
Sacha Greif
9cead70494
fixed conflicts using Matt's version over Julien's
2012-09-28 09:40:34 +09:00
Matt DeBergalis
99c780256b
Whoops, correct use of upvoters and downvoters
2012-09-27 16:03:27 -07:00
Matt DeBergalis
5ed9296814
Simplify plumbing for voting
2012-09-27 13:13:55 -07:00
Julien Chaumond
a21b534469
User karma
2012-09-27 22:03:25 +02:00
Sacha Greif
eda774aea1
updated voting and scoring to give more "power" to admins
2012-09-26 06:51:38 +09:00
Sacha Greif
a47a77f04c
working on admin account and permissions
2012-09-19 10:05:02 +09:00
Tom Coleman
2ccbf64edd
Downvoting / cancel voting.
2012-09-18 10:04:26 +10:00
Tom Coleman
fcf8c4ae58
Added voting to comments.
2012-09-18 09:29:31 +10:00
Tom Coleman
85b09d702a
Split voting out into something in lib/ so it runs client side too.
2012-09-18 09:24:07 +10:00