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/note.php | 2 +- templates/thread_page.php | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/note.php b/templates/note.php index 3fc86ba..56f1322 100644 --- a/templates/note.php +++ b/templates/note.php @@ -9,7 +9,7 @@ if ($user != null) { $interKinds = array_map(fn($inter) => $inter->kind, $interactions); } ?> -
+
$note->author]); ?> 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