exclude replies that have replies from getting collapsed in notifs

pull/138/head
Aevann 2023-03-07 17:56:42 +02:00
parent 1d992892d9
commit c810a84811
1 changed files with 1 additions and 1 deletions

View File

@ -514,7 +514,7 @@
{% if request.path.startswith('/notifications') and replies|length > 8 %}
{% for reply in replies %}
{% if reply.parent_submission %}
{% set collapse = not reply.unread %}
{% set collapse = not reply.unread and not reply.replies(sort=sort, v=v) %}
{% else %}
{% set collapse = not reply.unread and loop.index != replies|length %}
{% endif %}