From 6e517aa6dc310ec14c7f2e7cf5479d77f1be5069 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 14 Apr 2014 07:58:50 +0000 Subject: cgi: fix up top-level index We do not have all messages in the top-level index (and we need to adjust the test while we're at it). --- lib/PublicInbox/Feed.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 75e5d953..16b860cb 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -56,6 +56,10 @@ sub generate_html_index { my $str = `git cat-file blob $_[0]`; return 0 if $? != 0; my $simple = Email::Simple->new($str); + if ($top && ($simple->header("In-Reply-To") || + $simple->header("References"))) { + return 0; + } $simple->body_set(""); # save some memory push @messages, $simple; 1; -- cgit v1.2.3-24-ge0c7