From af899f204d3d1469e0ef190961d93994271585ca Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Wed, 11 Sep 2024 02:08:45 -0700 Subject: [PATCH 1/3] Increment version to 0.9.151. --- Rocksolid_Light/common/version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rocksolid_Light/common/version.txt b/Rocksolid_Light/common/version.txt index 5d11b14..f4d259a 100644 --- a/Rocksolid_Light/common/version.txt +++ b/Rocksolid_Light/common/version.txt @@ -1 +1 @@ -0.9.15 +0.9.151 From c97d3a9f5927deaec16f66f50feebee41c6b69c6 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Thu, 12 Sep 2024 03:08:24 -0700 Subject: [PATCH 2/3] Clear var in overboard threads view to not duplicate previous when top reference does not exist on server. --- Rocksolid_Light/rocksolid/overboard.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Rocksolid_Light/rocksolid/overboard.php b/Rocksolid_Light/rocksolid/overboard.php index 9badc95..fe49330 100644 --- a/Rocksolid_Light/rocksolid/overboard.php +++ b/Rocksolid_Light/rocksolid/overboard.php @@ -312,6 +312,9 @@ function display_threads($threads, $oldest) $style = 0; $results = 0; foreach ($nicole as $key => $value) { + if(isset($target_head)) { + unset($target_head); + } if (isset($this_overboard['msgids'][$key])) { $target_head = $this_overboard['msgids'][$key]; } From b22afff5cb9886c77b25a991ee99910a1493e647 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Thu, 12 Sep 2024 03:35:31 -0700 Subject: [PATCH 3/3] Fix (full thread) links in overboard flat view to point to first reference if exists on server. --- Rocksolid_Light/rocksolid/overboard.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Rocksolid_Light/rocksolid/overboard.php b/Rocksolid_Light/rocksolid/overboard.php index fe49330..3b48738 100644 --- a/Rocksolid_Light/rocksolid/overboard.php +++ b/Rocksolid_Light/rocksolid/overboard.php @@ -512,7 +512,7 @@ function display_flat($threads, $oldest) } if ($target['date'] < $expireme) { unset($this_overboard['threads'][$target['date']]); - unset($this_overboard['threadlink'][$new]); + unset($this_overboard['threadlink'][$value]); file_put_contents($logfile, "\n" . format_log_date() . " " . $config_name . " Pruning: " . $target['newsgroup'] . ":" . $target['number'], FILE_APPEND); } $poster = get_poster_name(mb_decode_mimeheader($target['name'])); @@ -542,9 +542,14 @@ function display_flat($threads, $oldest) $display .= '

'; // link for (thread), if possible + if(isset($target_head)) { + unset($target_head); + } + // Display 'full thread' link if available if (isset($this_overboard['threadlink'][$value])) { - if ($target !== false) { - $display .= ' (full thread)'; + $target_head = get_data_from_msgid($this_overboard['threadlink'][$value]); + if ($target_head !== false) { + $display .= ' (full thread)'; } } $display .= '

';