40 Commits (61871fae77bc174aced15a40c39c3008d488f4f9)

Author SHA1 Message Date
barisusakli 10b30e303b mongo posting fix 11 years ago
barisusakli 74282ffeea removed another unnecessary socket call 11 years ago
barisusakli 05fdc945f3 closes #1993 11 years ago
barisusakli c9c454825e closes #1369 11 years ago
barisusakli e420ee5fb6 privilege fix for single category check 11 years ago
barisusakli fed8cc6d53 optimize privileges and assorted fixes.
* new methods
privileges.categories.filter
privileges.topics.filter
privileges.posts.filter

they take a list of ids and a privilege, and return the filtered list of
ids, faster than doing  async.filter and calling the db for each id.

* remove event listeners on recent page before adding
* group.exists works for both single group names and arrays
* helpers.allowedTo works for both a single cid and an array of cids
* moved filter:topic.post hook right before topic creation.
* moved filter:topic.reply hook right before topic reply.
11 years ago
barisusakli f31978aa2c moved core notifications all the way to the end 11 years ago
barisusakli 82ffaad939 parseint 11 years ago
barisusakli 2c890ad609 moved pushUnreadCount 11 years ago
barisusakli b2ece27263 topic post hook 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
barisusakli 4c2765a79c closes #1679 11 years ago
barisusakli e8b89513d4 some cleanup in addUserInfoToPost 11 years ago
barisusakli b9139ef263 some escaping and fixed uploads in progress 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 55dbc5c823 closes #1612
changed post links to "topic/<topic_id>/<topic_slug>/<post_id>"
11 years ago
barisusakli 746df87d89 upgrade tags to sorted set 11 years ago
barisusakli 56f442f283 remove punctuation and limit tag length 11 years ago
barisusakli df73ceaeb7 closes #1556
added tag input box to composer when creating a topic
added new routes for viewing tags 'tags' and 'tags/:tagname'
respectively
post_bar.tpl shows the tags of the topic
can edit the main post to remove or add new tags
added a new menu item to header to go to the tags page
11 years ago
barisusakli 472e6b5206 privilege cleanup 11 years ago
barisusakli b1aae05a08 closes #1518 11 years ago
barisusakli 3e86bdb38f more work on #1518
still needs more work, category is next
11 years ago
Julian Lam b5d4e62e70 fixed bug in privileges system, thanks TravisCI! 11 years ago
Julian Lam 7c8b442dcd more updates to privileges revamp 11 years ago
barisusakli af6a40e23c use thumb directly 11 years ago
barisusakli 75824c0d81 dont send notifications for guests 11 years ago
barisusakli cd3bb77a7f added reqFromSocket to topic posting
new filter topic.post
11 years ago
Aziz Khoury 65ff72b0e3 its 3am 11 years ago
Aziz Khoury c7bd27fb3f spaces vs tabs ugh 11 years ago
Aziz Khoury fa7db423c6 adding hook filter:topic.reply for antispam 11 years ago
barisusakli d05920ec78 refactor of thread tools 11 years ago
barisusakli 6f2ea3eafc closes #1439 11 years ago
barisusakli adf6f34e42 closes #1436 11 years ago
Micheil Smith 3e82cab398 Add missing new lines at end of files. 11 years ago
barisusakli e2d0d4db5c added error and success language files
removed some code from server side that was emitting alerts
11 years ago
barisusakli bdefebeea0 reverting some of my code and fixed #1322 properly 11 years ago
Julian Lam 90616c6e7b closed #1322 11 years ago
barisusakli 04e0c58b84 fixes realtime update of home 11 years ago
barisusakli ca0dbf84be no need for exists check
if topic doesnt exist topicData will be null
11 years ago
barisusakli 38733ef94b moved reply post create to topics/create.js 11 years ago