aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/thread_page.php
diff options
context:
space:
mode:
authorwinter2025-01-13 20:57:26 +0000
committerwinter2025-01-13 20:57:26 +0000
commit5e5b7c5d6d4bbdd4acaea7d4b6c5be1e27b04a86 (patch)
treecb8c66bc1cc02df8e01ee5c8ec18ec74d3dde739 /templates/thread_page.php
parentf31d2abc237958bd9f33875f20198c4510389556 (diff)
make the thread page work
Diffstat (limited to 'templates/thread_page.php')
-rw-r--r--templates/thread_page.php7
1 files changed, 6 insertions, 1 deletions
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 @@
<?php
+use Digitigrade\Model\Note;
+
call_template('skeleton', [
'pageTitle' => '"' . $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