From 21a6f864026413ea7e3389166bd0db38d9f26a1d Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Sun, 26 May 2024 14:50:47 +0200 Subject: [PATCH] fix: use parent id for card anchor --- templates/card.html | 2 +- templates/threads.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/card.html b/templates/card.html index 2a1c5e1..3f3a1e9 100644 --- a/templates/card.html +++ b/templates/card.html @@ -19,7 +19,7 @@ {{ thread.created_at }} · - Anchor + Anchor diff --git a/templates/threads.html b/templates/threads.html index b930aeb..2934fb0 100644 --- a/templates/threads.html +++ b/templates/threads.html @@ -253,12 +253,12 @@ Back {% for thread in threads %} - {% with thread=thread, is_thread=threads|length > 1 %} + {% with thread=thread, parent_id=thread.id, is_thread=threads|length > 1 %} {% include "card.html" %} {% endwith %} {% if thread.descendants is defined %} {% for descendant in thread.descendants %} - {% with thread=descendant %} + {% with thread=descendant, parent_id=thread.id %} {% include "card.html" %} {% endwith %} {% endfor %}