59 Commits (0d6be40238a510cfee555afa0eddc212582ca159)

Author SHA1 Message Date
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
psychobunny 1e955b769b refactoring favourites 11 years ago
psychobunny 25a6302c01 upvoting / downvoting complete 11 years ago
psychobunny af805d3ca4 Favourites.hasVoted 11 years ago
psychobunny d35dc2d89b favouriting no longer affects reputation 11 years ago
psychobunny ef1fdbed71 server-side voting logic 11 years ago
Baris Soner Usakli 7f23f848fe fix for mismatch between favourite count and number of people in favourited seT 11 years ago
MrWaffle 03d92eb5cd Thought I'd refactor this for you guys 11 years ago
MrWaffle da317b5a85 async wooo 11 years ago
MrWaffle b887b76c29 Implement favourite tooltip to show who favourited a post 11 years ago
Baris Soner Usakli b3816b98a1 more post fixes 11 years ago
Baris Soner Usakli accde93fff removed api: from server 11 years ago
Julian Lam adb8f80b86 interim commit - removed calls to websockets.js, beginning porting to namespaced files 11 years ago
Baris Soner Usakli 5f86e31d1e fixed favouriting 11 years ago
Baris Soner Usakli 32d5118266 tons more changes 11 years ago
Baris Soner Usakli 32b191fa62 removed global.io 11 years ago
Baris Usakli 7c1b6d6ad2 lots of refactor for error handling 11 years ago
Baris Usakli 27f421587e closes #444 11 years ago
psychobunny 8b8a890ac9 removed unnecessary warning message to anonymous users attempting to unfavourite posts 12 years ago
psychobunny 5645bcee2d topic.json en lang; tested serverside internationalization in favourites; fixed some keys in login 12 years ago
psychobunny cf4ba9d1d3 format/jshint favourites.js 12 years ago
psychobunny aea3181d27 formatting - server side core 12 years ago