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-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id CCDB31FB07 for ; Thu, 14 Jan 2021 07:06:28 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 10/14] lei_overview: rename "references" to "refs" Date: Wed, 13 Jan 2021 19:06:23 -1200 Message-Id: <20210114070627.18195-11-e@80x24.org> In-Reply-To: <20210114070627.18195-1-e@80x24.org> References: <20210114070627.18195-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: "references" was too long of a name compared to the other field names we output in the JSON. While we currently don't have a "refs:" search prefix for the "References:" header, we may in the future. --- lib/PublicInbox/LeiOverview.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/LeiOverview.pm b/lib/PublicInbox/LeiOverview.pm index 080fe837..ec0921ba 100644 --- a/lib/PublicInbox/LeiOverview.pm +++ b/lib/PublicInbox/LeiOverview.pm @@ -91,7 +91,7 @@ sub _unbless_smsg { $smsg->{relevance} = get_pct($mitem) if $mitem; if (my $r = delete $smsg->{references}) { - $smsg->{references} = [ + $smsg->{refs} = [ map { "<$_>" } ($r =~ m/$MID_EXTRACT/go) ]; } if (my $m = delete($smsg->{mid})) {