diff --git a/src/Monitoring/ReplyPruning.coffee b/src/Monitoring/ReplyPruning.coffee index ffccecbbc..717f86d28 100644 --- a/src/Monitoring/ReplyPruning.coffee +++ b/src/Monitoring/ReplyPruning.coffee @@ -107,6 +107,7 @@ ReplyPruning = while ReplyPruning.hidden < hidden2 and ReplyPruning.position < posts.keys.length post = posts[posts.keys[ReplyPruning.position++]] if post.isReply and not post.isFetchedQuote + $.add ReplyPruning.container, node while (node = ReplyPruning.summary.nextSibling) and node isnt post.nodes.root $.add ReplyPruning.container, post.nodes.root ReplyPruning.hidden++ ReplyPruning.hiddenFiles++ if post.file @@ -116,6 +117,7 @@ ReplyPruning = while ReplyPruning.hidden > hidden2 and ReplyPruning.position > 0 post = posts[posts.keys[--ReplyPruning.position]] if post.isReply and not post.isFetchedQuote + $.prepend frag, node while (node = ReplyPruning.container.lastChild) and node isnt post.nodes.root $.prepend frag, post.nodes.root ReplyPruning.hidden-- ReplyPruning.hiddenFiles-- if post.file