Fix halting overboard at oldest article in flat display.

This commit is contained in:
Retro_Guy 2024-05-13 02:18:26 -07:00
parent 611a0279d9
commit 94c7af9d8d
1 changed files with 8 additions and 4 deletions

View File

@ -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;
@ -482,8 +482,12 @@ function display_flat($threads, $oldest)
$shown[$value . $target['newsgroup']] = $value;
}
if ($target['date'] < $oldest) {
if ($oldest - $target['date'] > 300) {
break;
} else {
continue;
}
}
if ($newonly) {
if ($foundgroup && $foundgroup != '') {
if ($target['date'] < $userdata[$foundgroup]) {
@ -536,7 +540,7 @@ function display_flat($threads, $oldest)
}
}
$results ++;
if($results > $maxdisplay) {
if ($results > $maxdisplay) {
break;
}
}