barisusakli
ecf0323dd0
closes #4688
9 years ago
barisusakli
7568e88800
remove logs
9 years ago
barisusakli
92f0e2d86a
closes #3586
...
added account/upvoted, account/downvoted, account/best
9 years ago
barisusakli
0ffd5254ad
closes #3933 , closes #3934
9 years ago
Julian Lam
65ce8a50b3
Removed cant-vote-self-post
...
As suggested in nodebb/nodebb-theme-persona#203 , a positive
action has been applied when a user attempts to upvote
their own post. It will now open the upvoters modal
instead of throwing an alertError.
Closes nodebb/nodebb-theme-persona#203
9 years ago
barisusakli
0210c033ee
closes #3779
9 years ago
barisusakli
f2f9000b70
fix vote progress
10 years ago
Andrea Cardinale
92c1d6712b
Uniform action:post.* hook
10 years ago
Andrea Cardinale
b33a482226
Restore favourites.js
10 years ago
Andrea Cardinale
3e21f26d0d
Restore favourites.js
10 years ago
Andrea Cardinale
3b1582915e
Restore favourites.js
10 years ago
Andrea Cardinale
da800a9016
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
src/favourites.js
10 years ago
Julian Lam
8bc5330e89
some minor cleanup in the async tree...
10 years ago
Andrea Cardinale
7c5ba9b7b1
Revert "Add hooks: action:post.favourite and action:post.unfavourite"
...
This reverts commit 1d22a2d46b
.
10 years ago
Andrea Cardinale
1d22a2d46b
Add hooks: action:post.favourite and action:post.unfavourite
10 years ago
Barış Soner Uşaklı
5ce72f4920
dont add guests to users:repuration zset
10 years ago
Barış Soner Uşaklı
30104b898c
dont allow vote spam
10 years ago
psychobunny
2ba1363e12
results.owner*
10 years ago
psychobunny
7e9095b21b
added "owner" to action:post.upvote/downvote/unvote
10 years ago
Julian Lam
957415463f
Merge branch '0.7.0'
...
Conflicts:
package.json
src/search.js
10 years ago
barisusakli
2c8e8a1f1c
closes #2550 , closes #2518
10 years ago
psychobunny
d47cd270df
some random favourite typo
10 years ago
Julian Lam
86a6979606
added comments to explain the voting logic
10 years ago
barisusakli
a8de1c1465
properly fix #2586
10 years ago
barisusakli
d7c27b35ab
closes #2586
10 years ago
barisusakli
ce24c6dc04
pass callback directly
10 years ago
barisusakli
3d93a76508
removed command param made unvote wrapper
10 years ago
psychobunny
8c98f47688
action:post.upvote / action:post.downvote now sends current status; new: action:post.unvote
10 years ago
barisusakli
bd388f727c
src/favourites.js
10 years ago
barisusakli
06f66337fb
anon checks
...
less db calls for uid 0
10 years ago
barisusakli
e93398b647
use currentTime when someone up/down votes
10 years ago
barisusakli
a8760cd2bc
only ban once for low rep
...
also only check on downvotes
10 years ago
barisusakli
7d9054c2cf
derp
11 years ago
psychobunny
61871fae77
merging #2077
11 years ago
Evan Lucas
3360752c5c
Added action:post.downvote hook
11 years ago
Julian Lam
c56a7bf475
Merge branch 'GAWMiners-feature/favourite-hook' into 0.5.1
11 years ago
Evan Lucas
440c78c949
match `object.action` nomenclature
11 years ago
Evan Lucas
fb45aa92fd
Add upvote hook
...
adhere to similar project style
11 years ago
barisusakli
603cddc687
closes #1934
11 years ago
barisusakli
dae3ef49be
show user names who upvoted a post on mouse over
11 years ago
barisusakli
049d7f766e
use getSetsMembers instead of async.map
11 years ago
barisusakli
c3a9767bf6
late night optimizations
...
-isMemberOfSets returns true/false instead of 1/0
-when loading the posts of a topic only get the userdata for each user
once, before this commit if a topic had 10 posts from 2 different users
we were getting the user data for each user 5 times (drunk)
-getVoteStatusByPostIDs and getFavouritesByPostIDs no longer make
pids.length calls to the db, they use isMemberOfSets now
-getUserInfoForPost renamed to getUserInfoForPosts and doesnt make
uids.length calls to db, uses getMultipleUserFields instead
11 years ago
psychobunny
92c0bd07c9
Ability to enable/disable the upvote/downvote system, closes #1672
11 years ago
psychobunny
b040201764
prevent hax voting via websockets if system disabled
11 years ago
psychobunny
b3c9323026
use admin setting for downvote privileges, closes #1757
11 years ago
psychobunny
8a03b42d62
prevent a user from downvoting if at negative rep
11 years ago
barisusakli
7610c11cd1
closes #450
...
backup database before upgrade!
upgrade script will take the first post of each topic and set the
`mainPid` property on the topic. then it will remove that pid from the
sorted sets for that topic, this was done to make alternative sorting
work.
added a new sorted set called `tid:<id>:posts:votes` that is used to
sort topic posts by vote count, the original sorted set `tid:<id>:posts`
is used to sort by oldest first or newest first.
the main post is added to the returned posts array on topic load and is
always at the top.
theme changes are minimal just a few new data properties on the posts
and the sorting dropdown.
hopefully didn't miss anything too critical.
11 years ago
barisusakli
d43d363a7a
refactored topics.js
...
removed ajaxify.register_events using removeListener now
11 years ago
psychobunny
e5486db1ae
Merge branch 'code-quality' of https://github.com/miksago/NodeBB into miksago-code-quality
...
Conflicts:
src/database.js
11 years ago
barisusakli
90540f64cf
removed some unused translator requires
11 years ago