From 4eae8da7ce664bdd174f088f7fba38e8c5e2d4ad Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Thu, 11 Jan 2024 07:49:40 -0700 Subject: [PATCH] Fix added 'Re: ' (again Polish) on articles that are not replies. --- Rocksolid_Light/rocksolid/lib/thread.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Rocksolid_Light/rocksolid/lib/thread.inc.php b/Rocksolid_Light/rocksolid/lib/thread.inc.php index f8adfbe..89fe804 100644 --- a/Rocksolid_Light/rocksolid/lib/thread.inc.php +++ b/Rocksolid_Light/rocksolid/lib/thread.inc.php @@ -191,7 +191,7 @@ function thread_overview_interpret($line, $overviewformat, $groupname) for ($i = 0; $i < count($overviewfmt) - 1; $i ++) { if ($overviewfmt[$i] == "Subject:") { $subject = preg_replace('/\[doctalk\]/i', '', headerDecode($over[$i + 1])); - $article->isReply = splitSubject($subject); + // $article->isReply = splitSubject($subject); $article->subject = $subject; } if ($overviewfmt[$i] == "Date:") { @@ -214,6 +214,7 @@ function thread_overview_interpret($line, $overviewformat, $groupname) if ($overviewfmt[$i] == "Message-ID:") $article->id = $over[$i + 1]; if (($overviewfmt[$i] == "References:") && ($over[$i + 1] != "")) { + $article->isReply = true; $article->references = explode(" ", $over[$i + 1]); } } @@ -690,11 +691,14 @@ function thread_format_subject($c, $group, $highlightids = false) } else { $offset = $CONFIG['timezone'] * 60; } + /* if ($c->isReply) { $re = "Re: "; } else { $re = ""; } + */ + $re = ""; // is the current article to be highlighted? if ((is_array($highlightids))) { if ((in_array($c->id, $highlightids)) || (in_array($c->number, $highlightids))) {