Commit Graph

445 Commits (5f55cc947ceb94cc7ee391c46cf38870a5743558)

Author SHA1 Message Date
barisusakli 5f55cc947c watch unwatch
update on toggle, moved isFollowing to api return and template
psychobunny 99bacf910c oops -
psychobunny 7f2254c9da closes https://github.com/NodeBB/NodeBB/issues/2126
barisusakli 5323934cc2 calculate page count in controller
barisusakli a19c306f49 guest fixes
psychobunny 45383ce21e posts.getPostsByTid and posts.getPostsByPids now require a uid passed in
barisusakli 655f5087d9 Merge remote-tracking branch 'origin/master' into hashtalk
barisusakli 6bde9a1656 prevent getTopicsByTids crash if a topic is null
barisusakli 57e204df8e removed most of the debug
dont get more than 6 usernames for upvote tooltips
generatePostPaths wont check null pids
barisusakli 34a4a2103f isNan check
barisusakli edd73b5be2 again
barisusakli 5160a4f90f getTopicwithposts
barisusakli 779b2a8d73 optimize queries
barisusakli 9fac18c4b6 derp
psychobunny f609b1e45d calololback
(how the hell was this working?)
barisusakli 73bef8168f another crash fix
barisusakli 0473e7f25b crash fix
Julian Lam cd10248226 basic topic searching via search bar working
Julian Lam 5d32073f2c Merge branch '0.5.1' into topic_searching
barisusakli eef200be10 closes
barisusakli 22fdf9f4ed getMainPost uses getMainPosts
barisusakli b858b120da closes
barisusakli 05fdc945f3 closes
barisusakli ca90afd544
(drunk) not even done yet
barisusakli b16932a676 check mainPid
barisusakli 1cf5c3145a doing it properly this time
mainPost always has index 0
barisusakli 8584da75f2 reverted main post change, breaks indices
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
barisusakli 46398fa924 removed unused require
barisusakli cb519d53a1 isArray check
barisusakli 8e8b678d40 small tweak
barisusakli 84aadc03fd fix filter condition
barisusakli 7ffad7e0d1 send callback directly
barisusakli 528ee335d5 optimize getTopicsByTids and getTeasers
barisusakli 90ac399f6d fix topics.loadMore so it checks read permission
Julian Lam 925cd99afb Merge branch 'master' into topic_searching
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.
barisusakli 0792731873 new hook filter:topics.get
Julian Lam 8296dc5630 beginning topic searching + new hook
psychobunny 1a37176a9d filter:topic.get, surprisingly never implemented till today
barisusakli 0362c1a3b0 show day/week/month/year popular topics
barisusakli 24aa166ed5 dont error when no teaser data
barisusakli d57f183f42 privileges.posts.get takes an array of pids now
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
barisusakli 9af12819e3 closes
barisusakli 7c84680b06 closes
barisusakli 9d4f1e18e1 removed length check
barisusakli cd5c24efe3 possible fix for
barisusakli 4c2765a79c closes
barisusakli 311a7ad5b9 topic purge