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/reply_form.php | 11 ++++++++++- templates/thread_page.php | 5 +++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/templates/reply_form.php b/templates/reply_form.php index 57a0dd0..915189e 100644 --- a/templates/reply_form.php +++ b/templates/reply_form.php @@ -2,6 +2,15 @@ use Digitigrade\Model\UserAccount; $user = UserAccount::findByCurrentSession(); + +$summaryText = ''; +if ($note->summary) { + if (strtolower(substr($note->summary, 0, 3)) == 're:') { + $summaryText = $note->summary; + } else { + $summaryText = "re: $note->summary"; + } +} ?>