From df201664df01d5b4ada6b992235f236511ec020f Mon Sep 17 00:00:00 2001 From: winter Date: Mon, 27 Jan 2025 20:03:49 +0000 Subject: fix repeated re: in cw and thread page notes not hightlighting --- templates/thread_page.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'templates/thread_page.php') diff --git a/templates/thread_page.php b/templates/thread_page.php index b46c968..cec94e2 100644 --- a/templates/thread_page.php +++ b/templates/thread_page.php @@ -12,11 +12,12 @@ call_template('skeleton', [ 'ogHandle' => '@' . $note->author->getFullHandle(true) ], function () { global $note; - $notes = Note::findAllInThread($note->threadApex ?? $note); + $targetNote = $note; // renaming this because my templating system clobbers it. :( + $notes = Note::findAllInThread($targetNote->threadApex ?? $targetNote); $user = UserAccount::findByCurrentSession(); foreach ($notes as $n) { if (!($user != null && $user->actor->blocks($n->author))) { - call_template('note', ['note' => $n, 'selected' => $n == $note]); + call_template('note', ['note' => $n, 'selected' => $n == $targetNote]); } } }); \ No newline at end of file -- cgit v1.3