From 46d8f69541d020907ec6af8eaafeb9d6f1a8b73d Mon Sep 17 00:00:00 2001 From: justcool393 Date: Thu, 27 Jul 2023 17:07:28 -0500 Subject: [PATCH] fix deep comment reply hang fixes #594 --- files/templates/comments.html | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/files/templates/comments.html b/files/templates/comments.html index 793ec7d87..1e9123b3e 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -26,30 +26,21 @@
- {% if render_replies %} - {% if level <= RENDER_DEPTH_LIMIT - 1 %} -
- {% set standalone=False %} + {% if render_replies %} +
+ {% if level <= RENDER_DEPTH_LIMIT - 1 %} + {% set standalone=false %} {% for reply in replies %} {{single_comment(reply, level=level+1)}} {% endfor %} + {% endif %} +
+ {% if replies and level >= RENDER_DEPTH_LIMIT -%} +
+ {% if not is_notification_page %}{% endif %} + More comments
- {% elif replies and is_notification_page %} -
- {% set standalone=False %} - {% for reply in replies %} - {{single_comment(reply, level=level+1)}} - {% endfor %} -
- - {% elif replies %} -
- - More comments -
- {% endif %} + {%- endif %} {% endif %}