]> Sergey Matveev's repositories - public-inbox.git/commitdiff
www: mirror: fix rendering of NNTP URLs
authorKyle Meyer <kyle@kyleam.com>
Tue, 26 Oct 2021 00:48:10 +0000 (20:48 -0400)
committerEric Wong <e@80x24.org>
Tue, 26 Oct 2021 03:15:50 +0000 (03:15 +0000)
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")
lib/PublicInbox/WwwText.pm

index 211ee8c928e7f74bd10bb39df4c6dbf7c3a0279f..2b4e69fe09745e4f3019b122989d363a5ebc467f 100644 (file)
@@ -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';