lib/PublicInbox/View.pm | 11 ++++------- diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 660447ddb527624e7ccd666402849274ad8f56e4..7cac7851104736b3daaebb953ff0e5f12b667675 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -390,12 +390,14 @@ my $srch = $ctx->{srch}; my $mid = mid_compress(mid_clean($cur->header('Message-ID'))); my $res = $srch->get_thread($mid); my $nr = $res->{total}; + if ($nr <= 1) { - $$dst .= "[only message in thread]\n"; + $$dst .= "\n[no followups, yet]\n"; return; } - $$dst .= "roughly $nr messages in thread:\n"; + $$dst .= "\n\n~$nr messages in thread: ". + "(expand)\n"; my $subj = $srch->subject_path($cur->header('Subject')); my $state = { seen => { $subj => 1 }, @@ -473,11 +475,6 @@ my $srch = $ctx->{srch} if $ctx; my $idx = $standalone ? " index" : ''; if ($idx && $srch) { - $mid = mid_compress(mid_clean($mid)); - my $t_anchor = defined $irt ? T_ANCHOR : ''; - $irt = $mime->header('In-Reply-To'); - $idx = " ". - "threadlink$idx\n\n"; my $next = thread_inline(\$idx, $ctx, $mime); if (defined $irt) { $irt = PublicInbox::Hval->new_msgid($irt);