412 Commits (1413478a6830763699725c78e34db6713ee22ed9)

Author SHA1 Message Date
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
barisusakli fa8cdce748 closes #1448 11 years ago
barisusakli c9551abc5d closes #1432
ability to select a default gravatar image (default, identicon,
mystery-man, monsterid, wavatar, retro) or upload a custom image to use
as default gravatar image
11 years ago
barisusakli 844923d538 added guest language string 11 years ago
barisusakli 2ad715ead3 closes #1412 11 years ago
barisusakli 9d405812cb changed sortedSetRangeByScore 11 years ago
barisusakli 1f77df794a added lots of error keys 11 years ago
barisusakli d61e632c59 closes #1366 11 years ago
barisusakli 640686f031 added back paragraph tags 11 years ago
Julian Lam b9aa0d2121 stripping paragraph tags from post summaries in an effort to collapse it all into one paragraph block. 11 years ago
barisusakli 36dc086470 no need to get signature and custom profile info 11 years ago
barisusakli b2a837d283 getPostSummary change 11 years ago
barisusakli f83b7ee972 renamed event 11 years ago
barisusakli 8efc33d6a1 closes #976 11 years ago
barisusakli a0e784a612 closes #1138 11 years ago
barisusakli bddc270033 changed addUserInfoToPost to add a user object 11 years ago
barisusakli 6e6c5688d9 more cleanup 11 years ago
barisusakli 813b3d6fcc changes for live streaming of posts 11 years ago
Baris Soner Usakli c9c25bd174 added getRecentPost 11 years ago
Baris Soner Usakli 976744480f post summary change 11 years ago
Baris Soner Usakli fb691b23b4 moved topic locked check to topic.reply 11 years ago
Baris Soner Usakli b6d97281d3 closes #1015 11 years ago
Baris Soner Usakli 24b669bd39 some fixes for search plugin 11 years ago
Baris Soner Usakli 9b4ca12dc1 fixed missing var, posts.js cleanup 11 years ago
Baris Soner Usakli 6e5a6b8784 upgraded categories to sorted set, score is the order set from acp, check if category topic exists before posting 11 years ago
Baris Soner Usakli d6d9776cde added toPid to posts 11 years ago
Baris Soner Usakli 60905b2e21 getPidPage fix, pids are strings 11 years ago
Baris Soner Usakli 29ba015d69 fixed topic thumbs 11 years ago
akhoury 63c9269240 merged composer and some other files with master 11 years ago
akhoury 25207852e8 added topics thumbnails support 11 years ago
Julian Lam 42d33f8338 first pass #899 11 years ago
Julian Lam f50d77bca0 resolved #1060 11 years ago
Baris Soner Usakli 21367a1847 reverse infinite loading 11 years ago
Baris Soner Usakli 8c14a59f93 added new sorted set posts:pid 11 years ago
Baris Soner Usakli bdc93409a7 Merge branch 'master' of https://github.com/designcreateplay/NodeBB 11 years ago
Baris Soner Usakli 075c6c01f2 upload changes, show progres in composer 11 years ago
psychobunny fe2e86da81 added optional 'reverse' parameter to Posts.getPostsByTid and Topics.getTopicPosts (incoming signature adjustment for 0.4x) 11 years ago
Baris Soner Usakli d0452dcc80 small pagination fix 11 years ago
Julian Lam 5b8585fafb fixed #985 11 years ago
Barış Soner Uşaklı 59e56f0e28 Merge pull request #979 from miksago/ondemand-feeds
On-demand feeds
11 years ago
Micheil Smith c619301735 Remove calls to feed.js 11 years ago
Baris Soner Usakli 2c18bbddbe upload changes, just pass filename to plugin or base64 data 11 years ago
Baris Soner Usakli 26849ba2b7 added hooks for image uploads into user and admin routes 11 years ago
Baris Soner Usakli e163282995 added filter:post.uploadFile 11 years ago
Baris Soner Usakli 1fc4568333 changed hook name to filter:post.uploadImage 11 years ago
Baris Soner Usakli 378ccc3cb7 removed imgur from core 11 years ago
Baris Soner Usakli 0f2e7fa8bd added a hook to post image upload for starters, more coming 11 years ago
Baris Soner Usakli c219935633 cleanup 11 years ago
Baris Soner Usakli d4c2a47c8e allow images in home and category 11 years ago
psychobunny 2c81d1f2d9 half hearted deprecation warning (maybe for 0.5x?) 11 years ago
Baris Soner Usakli 574e981de9 closes #831, user profile changes 11 years ago
Baris Soner Usakli c7195290c8 added infinite load to user favourites page 11 years ago
psychobunny c253760737 converted filter:posts.custom_profile_info to accept an array instead of building a string for better themability. closes #886 11 years ago
Baris Soner Usakli 1084523c92 lots of pagination work, query params, ajaxify to pids 11 years ago
Baris Soner Usakli 393bb7245c closes #866 11 years ago
Baris Soner Usakli b0ef974590 lots of cleanup and refactor 11 years ago
Baris Soner Usakli 824c5072e8 topics should be marked read correctly if you are already in it 11 years ago
Baris Soner Usakli e997c63480 return error 11 years ago
Baris Soner Usakli 55d4a5fe3a template fixes closes #825 11 years ago
Baris Soner Usakli bbac361670 fixed crash if empty topic was loaded without ajaxify 11 years ago
Baris Soner Usakli b3816b98a1 more post fixes 11 years ago
Julian Lam b3f23d41d3 fixed #744 11 years ago
Baris Soner Usakli a4ae9c70df closes #742, closes #741 11 years ago
Baris Soner Usakli d0a2c077ff refactored posts.create to use waterfall 11 years ago
Baris Soner Usakli 1996e64c9b if imgur client id is not set but local file uploads are enabled use that 11 years ago
Baris Soner Usakli d43f3cebc6 closes #707, closes #686 11 years ago
Baris Soner Usakli 8cfb239aac closes #705 11 years ago
Baris Soner Usakli daacdb50f3 closes #645 11 years ago
Julian Lam b52782deb8 removed use of strip_tags and using String library instead 11 years ago
Baris Soner Usakli 2c489c600c closes #675 11 years ago
Baris Soner Usakli 3a00c177d3 closes #150 11 years ago