Commit Graph

461 Commits (c1b61522f7d5ecc972c59e6ce7b4676e2c265669)

Author SHA1 Message Date
barisusakli 52c12fa1b1 use wrapper functions getPostsFields and getTopicsFields
barisusakli 6b13a84d2f removed extra priv checks
-removed category check from recentreplies since pids are already
checked
-removed category check from topics/unread.js since topics are filtered
now
-added array checks to src/topics.js
barisusakli 2579d2535d closes
barisusakli fa5ac04cd3 src/topics.js cleanup
Julian Lam 44175188c4 handling case where user does not satisfy any of the privilege thresholds given to the hasEnoughReputationFor method
barisusakli b12e3562d5 hide category icons if they are not set
barisusakli 081efd22e2 prevent crash if category is not found
barisusakli 802c8b15e2 fix upgrade script to include main post, and fix post indices
barisusakli 761f56aeb1 removed most of the db.sortedSetCards
barisusakli 0eae679bcd crash fix if field is undefined
barisusakli 29d90bc67d only use unique cids in isModerator
barisusakli e1c3bc9713 fix teasers
barisusakli 73d358edc5 faster getTeasers
got rid of getPostIndices
barisusakli 8737c5a56d removed debug
barisusakli c12b159bb5 temp debug
barisusakli 6aa53b8323 nextStart changes, fixed move topic notification text
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