417 Commits (8584da75f26425f35adfeda345788e9f440a5d02)

Author SHA1 Message Date
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
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
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
barisusakli 2ad715ead3 closes #1412 11 years ago
barisusakli bca2755c3e possible fix for #1410 11 years ago
Micheil Smith 3e82cab398 Add missing new lines at end of files. 11 years ago
barisusakli 1f77df794a added lots of error keys 11 years ago
barisusakli 3f44f4bb3a closes #1319 11 years ago
barisusakli a3404d3d4f closes #1253 11 years ago
barisusakli ca0dbf84be no need for exists check
if topic doesnt exist topicData will be null
11 years ago
barisusakli 7a1037dc11 moved posts and recent to new files 11 years ago
barisusakli 38733ef94b moved reply post create to topics/create.js 11 years ago
barisusakli 478429af3a moved fork to new file 11 years ago
barisusakli bac3cf03cb moved unread to new file 11 years ago
barisusakli f83b7ee972 renamed event 11 years ago
barisusakli 8efc33d6a1 closes #976 11 years ago