]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/WwwText.pm
config: lazy-load coderepos, support extindex
[public-inbox.git] / lib / PublicInbox / WwwText.pm
index a85609168d23a318fe373c4712a153901408c18c..76a95a6b640c879083b5010458a803dee4f815a7 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2016-2020 all contributors <meta@public-inbox.org>
+# Copyright (C) 2016-2021 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 
 # used for displaying help texts and other non-mail content
@@ -165,7 +165,7 @@ EOS
        ; gzip(1), and sqlite3(1) as documented:
 EOF
                for (sort keys %$altid_map) {
-                       $$txt .= "\t;\tcurl -XPOST $base_url$_.sql.gz | \\\n" .
+                       $$txt .= "\t;\tcurl -d '' $base_url$_.sql.gz | \\\n" .
                                "\t;\tgzip -dc | \\\n" .
                                "\t;\tsqlite3 $inboxdir/$_.sqlite3\n";
                        $$txt .= "\taltid = serial:$_:file=$_.sqlite3\n";
@@ -191,7 +191,7 @@ EOF
 EOF
                my $pi_cfg = $ctx->{www}->{pi_cfg};
                for my $cr_name (@$cr) {
-                       my $urls = $pi_cfg->{"coderepo.$cr_name.cgiturl"};
+                       my $urls = $pi_cfg->get_all("coderepo.$cr_name.cgiturl");
                        my $path = "/path/to/$cr_name";
                        $cr_name = dq_escape($cr_name);