From 89c33eadfd78b2aacd3e4924cc62a7e3402c35e8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 20 Jun 2016 07:22:23 +0000 Subject: www: improve topic view by scanning for ghosts This should help avoid having too many fake top-level messages in the topic view since we only have a partial window for threading results. --- lib/PublicInbox/SearchMsg.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/SearchMsg.pm') diff --git a/lib/PublicInbox/SearchMsg.pm b/lib/PublicInbox/SearchMsg.pm index 28c2037b..d41d2439 100644 --- a/lib/PublicInbox/SearchMsg.pm +++ b/lib/PublicInbox/SearchMsg.pm @@ -35,7 +35,7 @@ sub get_val ($$) { sub load_doc { my ($class, $doc) = @_; - my $data = $doc->get_data; + my $data = $doc->get_data or return; my $ts = get_val($doc, &PublicInbox::Search::TS); utf8::decode($data); my ($subj, $from, $refs, $to, $cc) = split(/\n/, $data); -- cgit v1.2.3-24-ge0c7