From 94c7af9d8db5b23cbdb89db4dd6f980be49b3518 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Mon, 13 May 2024 02:18:26 -0700 Subject: [PATCH] Fix halting overboard at oldest article in flat display. --- Rocksolid_Light/rocksolid/overboard.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Rocksolid_Light/rocksolid/overboard.php b/Rocksolid_Light/rocksolid/overboard.php index 17ad6c7..597eb1d 100644 --- a/Rocksolid_Light/rocksolid/overboard.php +++ b/Rocksolid_Light/rocksolid/overboard.php @@ -75,7 +75,7 @@ $version = 1.25; $cachetime = 60; # Maximum number of articles to show -$maxdisplay = 1000; // default 1000 +$maxdisplay = 300; // default 1000 # How many characters of the body to display per article $snippetlength = 240; @@ -312,7 +312,7 @@ function display_threads($threads, $oldest) if (! $foundgroup_head = check_group_for_user($key, $userdata, $user_config, true)) { // testing: continuing here may break newsgroup identification // and not display articles that should be displayed - // continue; + // continue; } $target_head = $this_overboard['msgids'][$key]; if (! isset($target_head['msgid'])) { @@ -482,7 +482,11 @@ function display_flat($threads, $oldest) $shown[$value . $target['newsgroup']] = $value; } if ($target['date'] < $oldest) { - continue; + if ($oldest - $target['date'] > 300) { + break; + } else { + continue; + } } if ($newonly) { if ($foundgroup && $foundgroup != '') { @@ -536,7 +540,7 @@ function display_flat($threads, $oldest) } } $results ++; - if($results > $maxdisplay) { + if ($results > $maxdisplay) { break; } }