From: Kyle Meyer Date: Tue, 26 Oct 2021 00:48:10 +0000 (-0400) Subject: www: mirror: fix rendering of NNTP URLs X-Git-Tag: v1.7.0~55 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=00db45c43436dde25f63abcaa969e29479204b82 www: mirror: fix rendering of NNTP URLs As of commit 738c4a65, the code for reporting NNTP information in _/text/mirror/ incorrectly uses ->imap_url rather than ->nntp_url. Fixes: 738c4a65719e6278 ("www: various help text updates") --- diff --git a/lib/PublicInbox/WwwText.pm b/lib/PublicInbox/WwwText.pm index 211ee8c9..2b4e69fe 100644 --- a/lib/PublicInbox/WwwText.pm +++ b/lib/PublicInbox/WwwText.pm @@ -284,7 +284,7 @@ sub _add_imap_nntp_urls ($$) { # each subfolder (starting with `0') holds 50K messages at most EOM } - $urls = $ctx->{ibx}->imap_url($ctx); + $urls = $ctx->{ibx}->nntp_url($ctx); if (@$urls) { $$txt .= "\n"; $$txt .= @$urls == 1 ? 'Newsgroup' : 'Newsgroups are';