Commit Graph

142 Commits (32f60df108e8d6556b8e788aa4e63088a8d306a6)

Author SHA1 Message Date
Julian Lam e4168f4a87 linting
psychobunny f7d1e58d65 improved threaded view design... again
Peter Jaszkowiak dd2b930824 Resolve merge conflicts, minify only `.js` files
Barış Soner Uşaklı b4a32ee96f style changes
Peter Jaszkowiak 896c8c7343 ESlint object-curly-spacing
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks
Peter Jaszkowiak 604358ecc4 ESlint keyword-spacing, no-multi-spaces
Peter Jaszkowiak 3361a72725 ESlint no-plusplus
and no-empty, space-unary-ops
Peter Jaszkowiak 2ba46808a1 ESlint one-var, fix comma-dangle
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle
Ben Lubar 5937fefa39
Check whether the user can read the replies and allow filtering the reply count in plugins
barisusakli 96d05b58d4 show deleted replies like regular deleted posts
Ben Lubar 123c66e3ec Cache the number of replies in the post object. See .
https://github.com/NodeBB/NodeBB/pull/5050#pullrequestreview-4248269
Ben Lubar 5d66811213 Include reply count with posts in topics
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule
HeeL 3fa1c1f927 Fix space-infix-ops linter rule
barisusakli 6f86621e30 closes
barisusakli 07fe5057e1 make sure validator.escape() receives strings only
barisusakli 0efe315790 closes
Ben Lubar f62da5c4e9 see
Ben Lubar 26df552d55 Add edit, delete, and topics:delete permissions for users acting on their own posts
barisusakli 596af5d82b closes
barisusakli ff88186d41 closes
barisusakli f246c5e1ee closes https://github.com/NodeBB/nodebb-theme-persona/issues/259
barisusakli f665a1e353 closes
barisusakli c10ec6b810 closes
barisusakli 34f68a029a closes
barisusakli 5f17e327ce possible fix for https://github.com/akhoury/nodebb-plugin-import/issues/173
barisusakli 1a87767c2c removed extra isAdminOrMod check
barisusakli 2d01fe78d0 removed privileges.posts.get from addPostData
privilege data is already available higher up
barisusakli 40e26d3b9d removed unused requires
barisusakli 75e2228989 closes
barisusakli b7ce4312a9 show toPid inline
Julian Lam 018af5fa22 accidentally used deprecated method, heh
Julian Lam 09d23c3dd0 Added support for a theme to generate a link back to a parent post
barisusakli 5950f97f96 more refactors
barisusakli 51cdd0800c simplified calculatePostIndices
barisusakli f55e8bc548 actually rename :dull:
Barış Soner Uşaklı e7dd881092 teaser fixes
if a post is deleted/restored update the teaser to the latest undeleted
pid, if all posts are deleted it will be set to null
barisusakli 1910fdb977 fix xss on guest handles, make sure guest handlers arent longer than max username length
barisusakli 878e548296 renamed end to stop globally
fixed getting favourites for admins
barisusakli c859586269 calculate topic post indices instead of querying db
barisusakli 39a75ea2d7 fix recent replies
barisusakli 23f450adbd delete topic post sorted sets on topic purge
barisusakli 7b49effc14 minor tweaks
Julian Lam 9befa6aca7 proper handling of post editing, integration with ACP toggle,
Julian Lam 325815a78d showing guest handles in frontend UI
barisusakli 8eb58bf5fe check err
barisusakli bf3f20bf8b removed extra comma
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
barisusakli 8bba811aaf closes
barisusakli 52a53df80d missing err check
barisusakli fa5ac04cd3 src/topics.js cleanup
barisusakli 595ff1f4b1 closes
see
https://community.nodebb.org/topic/3039/filter-post-parse-and-filter-post-parsesignature-changes
barisusakli 761f56aeb1 removed most of the db.sortedSetCards
barisusakli f3f4711a60 wait for callback
psychobunny 45383ce21e posts.getPostsByTid and posts.getPostsByPids now require a uid passed in
barisusakli 57e204df8e removed most of the debug
dont get more than 6 usernames for upvote tooltips
generatePostPaths wont check null pids
barisusakli 0d5605ab35 trace in addPostData
barisusakli 8e86f4b787 crash fix
barisusakli 1ed4c984bb Merge remote-tracking branch 'origin/master' into 0.5.1
barisusakli 0b79a73732 crash fix
if composer is opened in a topic that was deleted/purged
barisusakli 14fcd36134 closes
barisusakli 4f5c78d675 merge
barisusakli 537dea4e4b crash fix
barisusakli e6b3da18f2 merge
barisusakli 87c8cd2fb0 another crash fix
barisusakli eef200be10 closes
barisusakli ca90afd544
(drunk) not even done yet
barisusakli bc2f7339ee getLatestUndeletedPid will return string
barisusakli 2bf38ec84b handle pinned topics
barisusakli a69973e7a7 topics.getPids will return mainPid as well
barisusakli d57f183f42 privileges.posts.get takes an array of pids now
barisusakli 6cd29a31a4 removed timing
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 0987aed0e6 callback undefined error
barisusakli e8b89513d4 some cleanup in addUserInfoToPost
barisusakli b7f71ca0b4 fixes removePostFromTopic
remove the pid from the votes set too
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 0574022e02 fixes to infinitescroll
barisusakli 55dbc5c823 closes
changed post links to "topic/<topic_id>/<topic_slug>/<post_id>"
barisusakli b8b482e287 closes
barisusakli 4234057821 first pass for
this only handles postTools privileges, topic and category will follow
barisusakli f29dda4b92 fixed 1 more
Julian Lam 66225237a0 view_deleted fix for privs
Julian Lam 34b522f36d missed a bunch of "editable" checks
barisusakli d05920ec78 refactor of thread tools
barisusakli cf94a71499 closes
flag and chat buttons are hidden on self posts, updated in vanilla and
lavender
barisusakli 1000df09ff replaced hardcoded english string
barisusakli e4fbb31e68 some cleanup
barisusakli 7a1037dc11 moved posts and recent to new files