From 22efb3e3804c54f1066ce78d99a6aa073f696c0f Mon Sep 17 00:00:00 2001 From: teddit Date: Sat, 10 Apr 2021 18:03:10 +0200 Subject: [PATCH] collapse only 1st level child comments automatically if collapse_child_comments preference is true --- inc/compilePostComments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/compilePostComments.js b/inc/compilePostComments.js index 1560aa8..645edeb 100644 --- a/inc/compilePostComments.js +++ b/inc/compilePostComments.js @@ -45,7 +45,7 @@ module.exports = function() { } comments_html = `
-
0 ? '' : 'open'}> +
0 && comments.depth < 2 ? '' : 'open'}>

${commentAuthor(comments, classlist, submitter && submitter_link, moderator && moderator_badge)}

${ups}