395 Commits (3104cfb26b2c59f10cbc4fa53f9886ba0d788e5a)

Author SHA1 Message Date
barisusakli c5c97c784a optimize getPostIndices
only use 1 set when its in a topic
10 years ago
psychobunny 180625ece3 forgot to return just posts array 10 years ago
psychobunny 77dfc7378b filter:post.getPostSummaryByPids 10 years ago
barisusakli 5f2a66295c check keys 10 years ago
barisusakli f3f4711a60 wait for callback 10 years ago
barisusakli 327d1c1bec some cleanup and callbacks for post 10 years ago
psychobunny 6844c828ca added a hook I didn't end up needing, but here it is anyway `filter:posts.modifyUserInfo` 10 years ago
psychobunny 2c1bab2b9a filter:post.getPosts now passes in uid 10 years ago
psychobunny 45383ce21e posts.getPostsByTid and posts.getPostsByPids now require a uid passed in 10 years ago
barisusakli aae7f2434d closes #2088 10 years ago
barisusakli 655f5087d9 Merge remote-tracking branch 'origin/master' into hashtalk 11 years ago
barisusakli 523f245cd8 removed derp 11 years ago
barisusakli ae02c1a06c closes #2068 11 years ago
barisusakli 3c8ca63608 fixed getCidsByPids 11 years ago
barisusakli 57e204df8e removed most of the debug
dont get more than 6 usernames for upvote tooltips
generatePostPaths wont check null pids
11 years ago
barisusakli ef329c95df fix 11 years ago
barisusakli 0b83657868 more trace 11 years ago
barisusakli 779b2a8d73 optimize queries 11 years ago
barisusakli 10b30e303b mongo posting fix 11 years ago
barisusakli 4736a68534 dont create term object on each call 11 years ago
Julian Lam a5423aff16 getPidIndex callback if none specified 11 years ago
Julian Lam baf72249b6 made uid parameter optional in getPidIndex 11 years ago
barisusakli 171f02101d closes #2035, closes #2036 11 years ago
barisusakli 13bdd939e3 crash fix 11 years ago
barisusakli 4f5c78d675 merge 11 years ago
barisusakli 537dea4e4b crash fix 11 years ago
barisusakli e751a0c0cf closes #2003 11 years ago
barisusakli 7019618863 closes #2003 11 years ago
barisusakli 83de5ba5a4 added topic owner uid 11 years ago
barisusakli b858b120da closes #1998 11 years ago
barisusakli 05fdc945f3 closes #1993 11 years ago
barisusakli dd9a383f46 removed unused functions 11 years ago
barisusakli ca90afd544 #1992
(drunk) not even done yet
11 years ago
barisusakli c07d9121df small optimizations
user.isOnline works with an array of uids
do not make 2 trips to db to get main post and first 10 posts
11 years ago
barisusakli b8279dc737 optimize getUserGroups to work with multiple user ids 11 years ago
barisusakli 38b6c4ce55 #1925 11 years ago
barisusakli d97af5020a small cleanup to postSummary 11 years ago
barisusakli 5a2b02e798 fix var name, #1925 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 eeb4c9f487 optimize getPostSummaryByPids 11 years ago
barisusakli e8b767d0dd get recent poster uids 11 years ago
barisusakli 0792731873 new hook filter:topics.get 11 years ago
barisusakli 238d6602a2 check for valid content, #1884 11 years ago
barisusakli 206acab1bf added posted data back whoops 11 years ago
barisusakli afb62c7484 optional timestamp to post.create 11 years ago
barisusakli 64d04f7aa6 closes #1803 11 years ago
barisusakli 3e75a4397a fixes guest post data in topics 11 years ago
barisusakli d57f183f42 privileges.posts.get takes an array of pids now 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 bd4722665d closes #1725
removed move button from main post, disable moving main post, fixed
moving posts.
11 years ago