382 Commits (7a61645256421e8a21cadca19cbfd02ed5844082)

Author SHA1 Message Date
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
barisusakli 9af12819e3 closes #1731 11 years ago
barisusakli 4c2765a79c closes #1679 11 years ago
barisusakli 3b1e373e7b group titles 11 years ago
barisusakli e8b89513d4 some cleanup in addUserInfoToPost 11 years ago
barisusakli 833aa0f738 derp 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 1e68974f50 small refactor 11 years ago
barisusakli 472e6b5206 privilege cleanup 11 years ago
barisusakli 4234057821 first pass for #1518
this only handles postTools privileges, topic and category will follow
11 years ago
barisusakli 3643fbc212 fixes 2 privilege issues 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 b88df6420d check err 11 years ago