From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.0.0.0/16 X-Spam-Status: No, score=-3.6 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id D72001F670 for ; Tue, 26 Oct 2021 00:48:26 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1635209305; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=RqdJmlJr67g3Tgo0IBsX9nyMdJ7DTlJD68TnnXXn8BE=; b=eDP81GSG0W8pfG9/qwKXV+SfDqZAk/fhUgTZqyvpmHDdDpbCZPt3ZSmDID+e0E0nMfPPwB 6DRaKUtQmo3Ec7E++/5xR7WAT0yCFOeOBjZ7edV1wG3rf2So7ZSeCbAicv8ZrJoFBZC9eZ VxfKHNaHxJUpiSv28BJSzRznLJ/rq06c4YdM1KYjTkfW7AJ97qMgXps38HRCgaTRx5Wey7 dniH9tH3eVHsi0b5mIYVBgX+nqTufXso9pFiIzGwlIv77+vWfJLKJK6lfHVPqY3/8+mLJj WE7iIASQlp579riqizeA0TGNqTk1tbffBLVEckKV35F8cPXBExY5VH1D+MYlIA== From: Kyle Meyer To: meta@public-inbox.org Subject: [PATCH] www: mirror: fix rendering of NNTP URLs Date: Mon, 25 Oct 2021 20:48:10 -0400 Message-Id: <20211026004810.313713-1-kyle@kyleam.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: kyle@kyleam.com List-Id: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; base-commit: 9f3fb207c9daa13648f6d0f960e6fef922b55eab -- 2.33.1