diff options
author | Eric Wong <e@80x24.org> | 2021-03-16 23:02:16 -0800 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-03-17 19:03:13 +0000 |
commit | a5968dc059f655a9ac62f1b8bf0bed2b90080b02 (patch) | |
tree | ad57560f39f94358d93f2d4d492169e8f994f65a /lib/PublicInbox/WWW.pm | |
parent | be940983157a1f8bd353cb1891f6971645c73e5d (diff) | |
download | public-inbox-a5968dc059f655a9ac62f1b8bf0bed2b90080b02.tar.gz |
Extsearch objects are duck-types of Inbox objects, and are capable of supporting code repos all the same.
Diffstat (limited to 'lib/PublicInbox/WWW.pm')
-rw-r--r-- | lib/PublicInbox/WWW.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm index 500021d4..456692a3 100644 --- a/lib/PublicInbox/WWW.pm +++ b/lib/PublicInbox/WWW.pm @@ -309,7 +309,7 @@ sub get_text { sub get_vcs_object ($$$;$) { my ($ctx, $inbox, $oid, $filename) = @_; my $r404 = invalid_inbox($ctx, $inbox); - return $r404 if $r404; + return $r404 if $r404 || !$ctx->{www}->{pi_cfg}->repo_objs($ctx->{ibx}); require PublicInbox::ViewVCS; PublicInbox::ViewVCS::show($ctx, $oid, $filename); } |