]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei_overview: rename "references" to "refs"
authorEric Wong <e@80x24.org>
Thu, 14 Jan 2021 07:06:23 +0000 (19:06 -1200)
committerEric Wong <e@80x24.org>
Thu, 14 Jan 2021 23:14:08 +0000 (23:14 +0000)
"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

index 080fe837bdadde2faeab1601a4c501c70c044d8c..ec0921baf75c69c63102787330b143f26af04488 100644 (file)
@@ -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})) {