From b4bc9aeed78078feae58d150970fe224f10098e3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 16 Sep 2021 00:26:51 +0000 Subject: inbox: streamline ->nntp_url We no longer waste a precious hash slot for a per-Inbox {nntpserver} if it's only configured globally for all inboxes. --- lib/PublicInbox/WwwText.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/WwwText.pm') diff --git a/lib/PublicInbox/WwwText.pm b/lib/PublicInbox/WwwText.pm index fabe39f6..177d55e4 100644 --- a/lib/PublicInbox/WwwText.pm +++ b/lib/PublicInbox/WwwText.pm @@ -210,7 +210,7 @@ EOF defined(my $v = $ibx->{$k}) or next; $$txt .= "\t$k = $v\n"; } - $$txt .= "\tnntpmirror = $_\n" for (@{$ibx->nntp_url}); + $$txt .= "\tnntpmirror = $_\n" for (@{$ibx->nntp_url($ctx)}); _coderepo_config($ctx, $txt); 1; } @@ -343,7 +343,7 @@ EOM Example config snippet for mirrors: $cfg_link EOF if ($ibx->can('nntp_url')) { - my $nntp = $ibx->nntp_url; + my $nntp = $ibx->nntp_url($ctx); if (scalar @$nntp) { $$txt .= "\n"; $$txt .= @$nntp == 1 ? 'Newsgroup' : 'Newsgroups are'; -- cgit v1.2.3-24-ge0c7