From f1ef279050c8235910559f8a40c79740bff99db3 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 7 Nov 2016 17:56:07 -0800 Subject: [PATCH] Fix conflict of Reply Pruning with Unread Line. #836 --- src/Monitoring/ReplyPruning.coffee | 2 ++ 1 file changed, 2 insertions(+) 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