From: Eric Wong Date: Sat, 10 Aug 2024 09:00:06 +0000 (+0000) Subject: www_text: show indexheader contents in help X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f06671307022d483eb4a04599bd15f5d272a12ce;p=thirdparty%2Fpublic-inbox.git www_text: show indexheader contents in help This will allow mirror-ers to see how indexing gets done and replicate the results on their end. --- diff --git a/lib/PublicInbox/WwwText.pm b/lib/PublicInbox/WwwText.pm index d39083b68..20b221365 100644 --- a/lib/PublicInbox/WwwText.pm +++ b/lib/PublicInbox/WwwText.pm @@ -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}) {