From 1d6941c86208766000842dd43c94a3795fff6488 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 7 Nov 2016 17:12:20 -0800 Subject: [PATCH] Activate Reply Pruning by default in stickies. #1115, #1134 --- src/Monitoring/ReplyPruning.coffee | 6 ++++++ src/config/Config.coffee | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Monitoring/ReplyPruning.coffee b/src/Monitoring/ReplyPruning.coffee index 1c419ba02..ffccecbbc 100644 --- a/src/Monitoring/ReplyPruning.coffee +++ b/src/Monitoring/ReplyPruning.coffee @@ -56,6 +56,12 @@ ReplyPruning = node: -> ReplyPruning.thread = @ + if @isSticky + ReplyPruning.active = ReplyPruning.inputs.enabled.checked = true + if QuoteThreading.input + # Disable Quote Threading for this thread but don't save the setting. + Conf['Thread Quotes'] = QuoteThreading.input.checked = false + @posts.forEach (post) -> if post.isReply ReplyPruning.total++ diff --git a/src/config/Config.coffee b/src/config/Config.coffee index 69291e027..23996f391 100644 --- a/src/config/Config.coffee +++ b/src/config/Config.coffee @@ -407,11 +407,11 @@ Config = ] 'Reply Pruning': [ true - 'Hide old replies in long threads. Number of replies shown can be set from header menu.' + 'Add option in header menu to hide old replies in long threads. Activated by default in stickies.' ] 'Prune by Default': [ false - 'Turn Reply Pruning on by default in all threads, except when navigating to a post that would be hidden.' + 'Activate Reply Pruning by default in all threads.' 1 ]