From f305077dbeddfd0c3ca0ac1a4913f822bf4da1ee Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 18 Feb 2024 17:52:51 +0200 Subject: [PATCH] show full chain --- files/routes/notifications.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/files/routes/notifications.py b/files/routes/notifications.py index c358c2ccc..b66a017b9 100644 --- a/files/routes/notifications.py +++ b/files/routes/notifications.py @@ -450,9 +450,14 @@ def notification(v, cid): gevent.spawn(_mark_comment_as_read, comment.id, v.id) + if comment.level > 1: + shown_comment = comment.top_comment + else: + shown_comment = comment + return render_template("notifications.html", v=v, - notifications=[comment], + notifications=[shown_comment], total=1, page=1, standalone=True,