80 Commits (c781e55ea939cb52f76d7505ef776d5e8f49586f)

Author SHA1 Message Date
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
Micheil Smith 3e82cab398 Add missing new lines at end of files. 11 years ago
barisusakli 95972209f4 favourite changes
favourites.js no longer makes socket calls, moved that code into
socket.io/posts.js. it also makes a single socket call when you downvote
a post that you previously upvoted.
11 years ago
barisusakli 8b6f701246 removd dupe 11 years ago
barisusakli 1354739d19 user deletion #746
user deletion NOT SKALABLE
11 years ago
Baris Soner Usakli 8da7a6f2f3 cleanup 11 years ago
Baris Soner Usakli 2630a72f81 closes #965 11 years ago
psychobunny 37affe2489 no need to use mget, app.alert already translates 11 years ago