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/View.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/View.pm')
-rw-r--r-- | lib/PublicInbox/View.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index eee6ae33..f4f6da11 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -591,8 +591,9 @@ sub add_text_body { # callback for each_part $diff = 1; delete $ctx->{-long_path}; my $spfx; - if ($ibx->{-repo_objs}) { - if (index($upfx, '//') >= 0) { # absolute URL (Atom feeds) + # absolute URL (Atom feeds) + if ($ibx->{coderepo}) { + if (index($upfx, '//') >= 0) { $spfx = $upfx; $spfx =~ s!/([^/]*)/\z!/!; } else { |