about summary refs log tree commit homepage
path: root/lib/PublicInbox/WWW.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-10-27 07:54:49 +0000
committerEric Wong <e@80x24.org>2020-11-07 10:22:09 +0000
commitd2eb1ae16e4d3aaa5bece96f17b2fa4561d5b18e (patch)
tree1fe34db78d6ded9412c3ea1c9d0792cadb198930 /lib/PublicInbox/WWW.pm
parent9ebb1544ac677d3ed37231cfd78624916b6f2945 (diff)
downloadpublic-inbox-d2eb1ae16e4d3aaa5bece96f17b2fa4561d5b18e.tar.gz
This lets us pretend an ExtSearch object is an Inbox object
in most of the existing WWW code.
Diffstat (limited to 'lib/PublicInbox/WWW.pm')
-rw-r--r--lib/PublicInbox/WWW.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm
index e3b589cb..cdbcff1e 100644
--- a/lib/PublicInbox/WWW.pm
+++ b/lib/PublicInbox/WWW.pm
@@ -210,7 +210,8 @@ sub news_cgit_fallback ($) {
 # returns undef if valid, array ref response if invalid
 sub invalid_inbox ($$) {
         my ($ctx, $inbox) = @_;
-        my $ibx = $ctx->{www}->{pi_config}->lookup_name($inbox);
+        my $ibx = $ctx->{www}->{pi_config}->lookup_name($inbox) //
+                        $ctx->{www}->{pi_config}->lookup_ei($inbox);
         if (defined $ibx) {
                 $ctx->{-inbox} = $ibx;
                 return;