about summary refs log tree commit homepage
path: root/lib/PublicInbox/Inbox.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-01-10 21:41:55 +0000
committerEric Wong <e@80x24.org>2019-01-10 21:41:55 +0000
commitb0e5062d43a96372801713ef78a78d6a1bc852bc (patch)
tree76ea973c854c945989924a40905c855258a6419c /lib/PublicInbox/Inbox.pm
parentf6fea847bf71e5cc247497c95cdb73ccc74466d2 (diff)
parent59fd8cf084c6a67d9801c888a183eb83b552692d (diff)
downloadpublic-inbox-b0e5062d43a96372801713ef78a78d6a1bc852bc.tar.gz
* commit 'mem':
  view: more culling for search threads
  over: cull unneeded fields for get_thread
  searchmsg: remove unused fields for PSGI in Xapian results
  searchview: drop unused {seen} hashref
  searchmsg: remove Xapian::Document field
  searchmsg: get rid of termlist scanning for mid
  httpd: remove psgix.harakiri reference
Diffstat (limited to 'lib/PublicInbox/Inbox.pm')
-rw-r--r--lib/PublicInbox/Inbox.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm
index 73f5761a..d57e46d2 100644
--- a/lib/PublicInbox/Inbox.pm
+++ b/lib/PublicInbox/Inbox.pm
@@ -302,8 +302,9 @@ sub smsg_by_mid ($$) {
         my ($self, $mid) = @_;
         my $srch = search($self) or return;
         # favor the Message-ID we used for the NNTP article number:
-        my $num = mid2num($self, $mid);
-        defined $num ? $srch->lookup_article($num) : undef;
+        defined(my $num = mid2num($self, $mid)) or return;
+        my $smsg = $srch->lookup_article($num) or return;
+        PublicInbox::SearchMsg::psgi_cull($smsg);
 }
 
 sub msg_by_mid ($$;$) {