530 Commits (aa64ec7db19df296d3bd32af815de38008334433)

Author SHA1 Message Date
Barış Soner Uşaklı abf27954d3 use topic.getMainPids 10 years ago
barisusakli 4cb58d976b fix indices, main post always 0 10 years ago
barisusakli 2878bf6cfe removed commented out code 10 years ago
barisusakli c63d5f4b7a test 10 years ago
Barış Soner Uşaklı 33723f8b1b closes #2835 10 years ago
Barış Soner Uşaklı e2b535dfaf closes #1973 10 years ago
barisusakli 4d63a7c020 closes ##2705 10 years ago
Julian Lam 957415463f Merge branch '0.7.0'
Conflicts:
	package.json
	src/search.js
10 years ago
barisusakli 9062a8f02b pass on mainPid 10 years ago
barisusakli c859586269 calculate topic post indices instead of querying db 10 years ago
barisusakli 236fe91e95 fix typo 10 years ago
barisusakli 6fe8d25166 add uid to filter:topic.get 10 years ago
barisusakli 6ccdf187ea closes #2595 10 years ago
barisusakli 08c1dad3ee topics.isFollowing works with multiple tids now 10 years ago
barisusakli 83312ad53a faster getTeasers 10 years ago
barisusakli 4f38a33702 fix pagination going to 404 if new post creates a new page 10 years ago
barisusakli 8e114c2093 moved isAdminOrMod check out of getTopicsByTids 10 years ago
barisusakli 653850661e topics.getTopics doesnt take set param 10 years ago
barisusakli 79265b9e83 removed dupe code 10 years ago
barisusakli 52c12fa1b1 use wrapper functions getPostsFields and getTopicsFields 10 years ago
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
10 years ago
barisusakli 2579d2535d closes #2396 10 years ago
barisusakli fa5ac04cd3 src/topics.js cleanup 10 years ago
Julian Lam 44175188c4 handling case where user does not satisfy any of the privilege thresholds given to the hasEnoughReputationFor method 10 years ago
barisusakli b12e3562d5 hide category icons if they are not set 10 years ago
barisusakli 081efd22e2 prevent crash if category is not found 10 years ago
barisusakli 802c8b15e2 fix upgrade script to include main post, and fix post indices 10 years ago
barisusakli 761f56aeb1 removed most of the db.sortedSetCards 10 years ago
barisusakli 0eae679bcd crash fix if field is undefined 10 years ago
barisusakli 29d90bc67d only use unique cids in isModerator 10 years ago
barisusakli e1c3bc9713 fix teasers 10 years ago
barisusakli 73d358edc5 faster getTeasers
got rid of getPostIndices
10 years ago
barisusakli 8737c5a56d removed debug 10 years ago
barisusakli c12b159bb5 temp debug 10 years ago
barisusakli 6aa53b8323 nextStart changes, fixed move topic notification text 10 years ago
barisusakli 5f55cc947c watch unwatch
update on toggle, moved isFollowing to api return and template
11 years ago
psychobunny 99bacf910c oops - #2126 11 years ago
psychobunny 7f2254c9da closes https://github.com/NodeBB/NodeBB/issues/2126 11 years ago
barisusakli 5323934cc2 calculate page count in controller 11 years ago
barisusakli a19c306f49 guest fixes 11 years ago
psychobunny 45383ce21e posts.getPostsByTid and posts.getPostsByPids now require a uid passed in 11 years ago
barisusakli 655f5087d9 Merge remote-tracking branch 'origin/master' into hashtalk 11 years ago
barisusakli 6bde9a1656 prevent getTopicsByTids crash if a topic is null 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 34a4a2103f isNan check 11 years ago
barisusakli edd73b5be2 again 11 years ago
barisusakli 5160a4f90f getTopicwithposts 11 years ago
barisusakli 779b2a8d73 optimize queries 11 years ago
barisusakli 9fac18c4b6 derp 11 years ago
psychobunny f609b1e45d calololback
(how the hell was this working?)
11 years ago
barisusakli 73bef8168f another crash fix 11 years ago
barisusakli 0473e7f25b crash fix 11 years ago
Julian Lam cd10248226 basic topic searching via search bar working 11 years ago
Julian Lam 5d32073f2c Merge branch '0.5.1' into topic_searching 11 years ago
barisusakli eef200be10 closes #1284 11 years ago
barisusakli 22fdf9f4ed getMainPost uses getMainPosts 11 years ago
barisusakli b858b120da closes #1998 11 years ago
barisusakli 05fdc945f3 closes #1993 11 years ago
barisusakli ca90afd544 #1992
(drunk) not even done yet
11 years ago
barisusakli b16932a676 check mainPid 11 years ago
barisusakli 1cf5c3145a doing it properly this time
mainPost always has index 0
11 years ago
barisusakli 8584da75f2 reverted main post change, breaks indices 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 46398fa924 removed unused require 11 years ago
barisusakli cb519d53a1 isArray check 11 years ago
barisusakli 8e8b678d40 small tweak 11 years ago
barisusakli 84aadc03fd fix filter condition 11 years ago
barisusakli 7ffad7e0d1 send callback directly 11 years ago
barisusakli 528ee335d5 optimize getTopicsByTids and getTeasers 11 years ago
barisusakli 90ac399f6d fix topics.loadMore so it checks read permission 11 years ago
Julian Lam 925cd99afb Merge branch 'master' into topic_searching 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 0792731873 new hook filter:topics.get 11 years ago
Julian Lam 8296dc5630 beginning topic searching + new hook 11 years ago
psychobunny 1a37176a9d filter:topic.get, surprisingly never implemented till today 11 years ago
barisusakli 0362c1a3b0 show day/week/month/year popular topics 11 years ago
barisusakli 24aa166ed5 dont error when no teaser data 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 9af12819e3 closes #1731 11 years ago
barisusakli 7c84680b06 closes #1709 11 years ago
barisusakli 9d4f1e18e1 #1688 removed length check 11 years ago
barisusakli cd5c24efe3 possible fix for #1688 11 years ago
barisusakli 4c2765a79c closes #1679 11 years ago
barisusakli 311a7ad5b9 #1281 topic purge 11 years ago
barisusakli a65d612907 #1281 post purge 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 b8b482e287 closes #1555 11 years ago
barisusakli 3f43db090b return topics tags #1557 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 34b522f36d missed a bunch of "editable" checks 11 years ago
Julian Lam 87f4566e06 more fixed to privs, and ACP modal 11 years ago
Julian Lam 7c8b442dcd more updates to privileges revamp 11 years ago
barisusakli 8afcf44732 gravatars will be generated on demand
changing the setting in ACP will affect all default gravatars now.
11 years ago
barisusakli 6f40393b99 added err check 11 years ago
barisusakli d05920ec78 refactor of thread tools 11 years ago