From c7f51fdb57ecbbaa526bb05a673b33ebec3e73e3 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Mon, 29 Apr 2024 07:20:57 -0700 Subject: [PATCH] Try even harder to decide whether to display snippet in head article in overboard. --- Rocksolid_Light/rocksolid/overboard.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Rocksolid_Light/rocksolid/overboard.php b/Rocksolid_Light/rocksolid/overboard.php index b396d81..b8437a0 100644 --- a/Rocksolid_Light/rocksolid/overboard.php +++ b/Rocksolid_Light/rocksolid/overboard.php @@ -375,7 +375,12 @@ function display_threads($threads, $oldest) $display .= '

'; $display .= '' . headerDecode($target_head['subject']) . '

'; $display .= '' . $target_head['newsgroup'] . ''; - if((!isset($value[$target_head['msgid']]) || $result_count > 10) && isset($target_head['date'])) { + // Do better than !isset($value[$target_head['msgid']]) + $timetest = $oldest; + if($newonly) { + $timetest = $userdata[$target_head['newsgroup']]; + } + if((($target_head['date'] < $timetest) || $result_count > 10) && isset($target_head['date'])) { $poster = get_poster_name(mb_decode_mimeheader($target_head['name'])); $block = false; foreach ($blocked_user_config as $bkey => $bvalue) {