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/Search.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/PublicInbox/Search.pm') diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index 856c8c14..8c0bab18 100644 --- a/lib/PublicInbox/Search.pm +++ b/lib/PublicInbox/Search.pm @@ -227,6 +227,12 @@ sub lookup_message { $smsg; } +sub lookup_mail { # no ghosts! + my ($self, $mid) = @_; + my $smsg = lookup_message($self, $mid); + PublicInbox::SearchMsg->load_doc($smsg->{doc}); +} + sub find_unique_doc_id { my ($self, $term, $value) = @_; -- cgit v1.2.3-24-ge0c7