From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 6A4A01FC5B for ; Sat, 10 Aug 2024 09:00:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1723280414; bh=r5HAX0uVVuIo7ndKVK2aS5nRy2hpXp14JwHj3LMQQcc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=e/zmCKkjZHq2IKZ7MzoRBE+Tg639GgfbJW4Kh4uNvDXOiyZMAqsoy50Wbo2ODXoKK myzvQXSuVPJnPOjsdOsC14Q5on5+2fkN+y9dWhJdmAHgYXbGuZHZk/F1JFsub2d6iU NjRhcCnZOkrfI8h/FAtatIqYOiaA6yksPh7ws4wo= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 05/11] www_text: show indexheader contents in help Date: Sat, 10 Aug 2024 09:00:06 +0000 Message-ID: <20240810090012.23269-6-e@80x24.org> In-Reply-To: <20240810090012.23269-1-e@80x24.org> References: <20240810090012.23269-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This will allow mirror-ers to see how indexing gets done and replicate the results on their end. --- lib/PublicInbox/WwwText.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PublicInbox/WwwText.pm b/lib/PublicInbox/WwwText.pm index d39083b6..20b22136 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}) {