Fix (thread) links in overboard to point to same group as article when possible.

This commit is contained in:
Retro_Guy 2024-02-02 13:01:41 -07:00
parent 025f73cd3e
commit 8ad1b0b71a
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ function display_threads($threads, $oldest)
echo '<p class=np_ob_subject>';
echo '<b><a href="' . $url . '"><span>' . headerDecode($target['subject']) . '</span></a></b>';
if (isset($this_overboard['threadlink'][$value])) {
$thread = get_data_from_msgid($this_overboard['threadlink'][$value]);
$thread = get_data_from_msgid($this_overboard['threadlink'][$value], $target['newsgroup']);
echo '<font class="np_ob_group"><a href="article-flat.php?id=' . $thread['number'] . '&group=' . rawurlencode($thread['newsgroup']) . '#' . $thread['number'] . '"> (thread)</a></font>';
}
echo '</p>';