exclude replies that have replies from getting collapsed in notifs
parent
1d992892d9
commit
c810a84811
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue