]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
www_text: show indexheader contents in help
authorEric Wong <e@80x24.org>
Sat, 10 Aug 2024 09:00:06 +0000 (09:00 +0000)
committerEric Wong <e@80x24.org>
Sat, 17 Aug 2024 17:36:16 +0000 (17:36 +0000)
This will allow mirror-ers to see how indexing gets done and
replicate the results on their end.

lib/PublicInbox/WwwText.pm

index d39083b68a2e61968e700f193ffddc705ce1ae99..20b2213658858d85ffe91fad3b13ffb3d12e15ef 100644 (file)
@@ -168,8 +168,8 @@ sub inbox_config ($$) {
        url = https://example.com/$name/
        url = http://example.onion/$name/
 EOS
-       for my $k (qw(address listid infourl watchheader)) {
-               defined(my $v = $ibx->{$k}) or next;
+       for my $k (qw(address listid infourl watchheader indexheader)) {
+               my $v = $ibx->{$k} // next;
                $$txt .= "\t$k = $_\n" for @$v;
        }
        if (my $altid = $ibx->{altid}) {