43 Commits (2c7d9e1a7c4cbe91ecd2d533de4aa48edb7172db)

Author SHA1 Message Date
barisusakli 2c7d9e1a7c store teaserPid in topic
-update teaser pid as necessary in addPostToTopic, removePostFromTopic,
post purge
-removed 20x db calls from getTeasers
-fixed scroll to post in sub folder install
-upgrade script to update topics with teaserPid
10 years ago
barisusakli 8bba811aaf closes #2522 10 years ago
barisusakli 52a53df80d missing err check 10 years ago
barisusakli fa5ac04cd3 src/topics.js cleanup 10 years ago
barisusakli 595ff1f4b1 closes #2303
see
https://community.nodebb.org/topic/3039/filter-post-parse-and-filter-post-parsesignature-changes
10 years ago
barisusakli 761f56aeb1 removed most of the db.sortedSetCards 10 years ago
barisusakli f3f4711a60 wait for callback 11 years ago
psychobunny 45383ce21e posts.getPostsByTid and posts.getPostsByPids now require a uid passed in 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 0d5605ab35 trace in addPostData 11 years ago
barisusakli 8e86f4b787 crash fix 11 years ago
barisusakli 1ed4c984bb Merge remote-tracking branch 'origin/master' into 0.5.1 11 years ago
barisusakli 0b79a73732 crash fix
if composer is opened in a topic that was deleted/purged
11 years ago
barisusakli 14fcd36134 closes #2028 11 years ago
barisusakli 4f5c78d675 merge 11 years ago
barisusakli 537dea4e4b crash fix 11 years ago
barisusakli e6b3da18f2 merge 11 years ago
barisusakli 87c8cd2fb0 another crash fix 11 years ago
barisusakli eef200be10 closes #1284 11 years ago
barisusakli ca90afd544 #1992
(drunk) not even done yet
11 years ago
barisusakli bc2f7339ee getLatestUndeletedPid will return string #1884 11 years ago
barisusakli 2bf38ec84b handle pinned topics 11 years ago
barisusakli a69973e7a7 topics.getPids will return mainPid as well 11 years ago
barisusakli d57f183f42 privileges.posts.get takes an array of pids now 11 years ago
barisusakli 6cd29a31a4 removed timing 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 0987aed0e6 callback undefined error 11 years ago
barisusakli e8b89513d4 some cleanup in addUserInfoToPost 11 years ago
barisusakli b7f71ca0b4 fixes removePostFromTopic
remove the pid from the votes set too
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 0574022e02 fixes to infinitescroll 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 4234057821 first pass for #1518
this only handles postTools privileges, topic and category will follow
11 years ago
barisusakli f29dda4b92 fixed 1 more 11 years ago
Julian Lam 66225237a0 view_deleted fix for privs 11 years ago
Julian Lam 34b522f36d missed a bunch of "editable" checks 11 years ago
barisusakli d05920ec78 refactor of thread tools 11 years ago
barisusakli cf94a71499 closes #1427
flag and chat buttons are hidden on self posts, updated in vanilla and
lavender
11 years ago
barisusakli 1000df09ff replaced hardcoded english string 11 years ago
barisusakli e4fbb31e68 some cleanup 11 years ago
barisusakli 7a1037dc11 moved posts and recent to new files 11 years ago