diff options
| author | winter | 2025-01-27 20:03:49 +0000 |
|---|---|---|
| committer | winter | 2025-01-27 20:03:49 +0000 |
| commit | df201664df01d5b4ada6b992235f236511ec020f (patch) | |
| tree | 0a22c24376f2b0e79c7193e7eb8e36c4b415a71b /templates/thread_page.php | |
| parent | 5a6300f473b8be0e90a16e2b5992299b0ea1ddff (diff) | |
fix repeated re: in cw and thread page notes not hightlighting
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 |
