diff options
Diffstat (limited to 'templates/thread_page.php')
| -rw-r--r-- | templates/thread_page.php | 5 |
1 files changed, 3 insertions, 2 deletions
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 |
