Commit Graph

348 Commits (d57f183f420cdafb1fa9ac91bf41b653c3c730e1)

Author SHA1 Message Date
barisusakli d57f183f42 privileges.posts.get takes an array of pids now
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
barisusakli bd4722665d closes
removed move button from main post, disable moving main post, fixed
moving posts.
barisusakli 9af12819e3 closes
barisusakli 4c2765a79c closes
barisusakli 3b1e373e7b group titles
barisusakli e8b89513d4 some cleanup in addUserInfoToPost
barisusakli 833aa0f738 derp
barisusakli 7610c11cd1 closes
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.
barisusakli 55dbc5c823 closes
changed post links to "topic/<topic_id>/<topic_slug>/<post_id>"
barisusakli 1e68974f50 small refactor
barisusakli 472e6b5206 privilege cleanup
barisusakli 4234057821 first pass for
this only handles postTools privileges, topic and category will follow
barisusakli 3643fbc212 fixes 2 privilege issues
barisusakli 8afcf44732 gravatars will be generated on demand
changing the setting in ACP will affect all default gravatars now.
barisusakli b88df6420d check err
barisusakli fa8cdce748 closes
barisusakli c9551abc5d closes
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
barisusakli 844923d538 added guest language string
barisusakli 2ad715ead3 closes
barisusakli 9d405812cb changed sortedSetRangeByScore
barisusakli 1f77df794a added lots of error keys
barisusakli d61e632c59 closes
barisusakli 640686f031 added back paragraph tags
Julian Lam b9aa0d2121 stripping paragraph tags from post summaries in an effort to collapse it all into one paragraph block.
barisusakli 36dc086470 no need to get signature and custom profile info
barisusakli b2a837d283 getPostSummary change
barisusakli f83b7ee972 renamed event
barisusakli 8efc33d6a1 closes
barisusakli a0e784a612 closes
barisusakli bddc270033 changed addUserInfoToPost to add a user object
barisusakli 6e6c5688d9 more cleanup
barisusakli 813b3d6fcc changes for live streaming of posts
Baris Soner Usakli c9c25bd174 added getRecentPost
Baris Soner Usakli 976744480f post summary change
Baris Soner Usakli fb691b23b4 moved topic locked check to topic.reply
Baris Soner Usakli b6d97281d3 closes
Baris Soner Usakli 24b669bd39 some fixes for search plugin
Baris Soner Usakli 9b4ca12dc1 fixed missing var, posts.js cleanup
Baris Soner Usakli 6e5a6b8784 upgraded categories to sorted set, score is the order set from acp, check if category topic exists before posting
Baris Soner Usakli d6d9776cde added toPid to posts
Baris Soner Usakli 60905b2e21 getPidPage fix, pids are strings
Baris Soner Usakli 29ba015d69 fixed topic thumbs
akhoury 63c9269240 merged composer and some other files with master
akhoury 25207852e8 added topics thumbnails support
Julian Lam 42d33f8338 first pass
Julian Lam f50d77bca0 resolved
Baris Soner Usakli 21367a1847 reverse infinite loading
Baris Soner Usakli 8c14a59f93 added new sorted set posts:pid
Baris Soner Usakli bdc93409a7 Merge branch 'master' of https://github.com/designcreateplay/NodeBB