From e6627d448b626470001e4e75b9386fca9a10e174 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Mon, 27 May 2024 05:58:23 -0700 Subject: [PATCH] Limit overboard threads view to maxdisplay. --- Rocksolid_Light/rocksolid/overboard.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Rocksolid_Light/rocksolid/overboard.php b/Rocksolid_Light/rocksolid/overboard.php index 02afa8c..157681a 100644 --- a/Rocksolid_Light/rocksolid/overboard.php +++ b/Rocksolid_Light/rocksolid/overboard.php @@ -308,12 +308,6 @@ function display_threads($threads, $oldest) $style = 0; $results = 0; foreach ($nicole as $key => $value) { - // Skip if not in registered users sub list - 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; - } $target_head = $this_overboard['msgids'][$key]; if (! isset($target_head['msgid'])) { $target_head = get_data_from_msgid($key); @@ -422,6 +416,9 @@ function display_threads($threads, $oldest) } } $display .= ''; + if ($results > ($maxdisplay - 1)) { + break; + } } $display .= "";