From 5e5b7c5d6d4bbdd4acaea7d4b6c5be1e27b04a86 Mon Sep 17 00:00:00 2001 From: winter Date: Mon, 13 Jan 2025 20:57:26 +0000 Subject: make the thread page work --- templates/thread_page.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'templates/thread_page.php') diff --git a/templates/thread_page.php b/templates/thread_page.php index 73d8f0b..e5e5389 100644 --- a/templates/thread_page.php +++ b/templates/thread_page.php @@ -1,8 +1,13 @@ '"' . $note->plainContent . '" - @' . $note->author->getFullHandle(), 'renderTitleHeading' => false ], function () { global $note; - call_template('note', ['note' => $note]); + $notes = Note::findAllInThread($note->threadApex ?? $note); + foreach ($notes as $n) { + call_template('note', ['note' => $n, 'selected' => $n == $note]); + } }); \ No newline at end of file -- cgit v1.3