about summary refs log tree commit homepage
path: root/lib/PublicInbox/NNTP.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-06-01 10:06:56 +0000
committerEric Wong <e@yhbt.net>2020-06-03 04:04:21 +0000
commit62b80b61d334361677e26e9ddb966e6bc5f8635d (patch)
treef10d0e4e7a0b7a1319535907581abae951e2183d /lib/PublicInbox/NNTP.pm
parentdee9a7231ca1019f56eea3596f0c428769e3eac1 (diff)
downloadpublic-inbox-62b80b61d334361677e26e9ddb966e6bc5f8635d.tar.gz
We'll continue to favor simpler data models that can be
used directly rather than wasting time and memory with
accessor APIs.

The ->from, ->to, -cc, ->mid, ->subject, >references methods can
all be trivially replaced by hash lookups since all their values
are stored in doc_data.  Most remaining callers of those methods
were test cases, anyways.

->from_name is only used in the PSGI code, so we can just
use ->psgi_cull to take care of populating the {from_name}
field.
Diffstat (limited to 'lib/PublicInbox/NNTP.pm')
-rw-r--r--lib/PublicInbox/NNTP.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm
index a37910d1..ac13c7df 100644
--- a/lib/PublicInbox/NNTP.pm
+++ b/lib/PublicInbox/NNTP.pm
@@ -296,7 +296,7 @@ sub newnews_i {
         my $msgs = $over->query_ts($ts, $$prev);
         if (scalar @$msgs) {
                 more($self, '<' .
-                        join(">\r\n<", map { $_->mid } @$msgs ).
+                        join(">\r\n<", map { $_->{mid} } @$msgs ).
                         '>');
                 $$prev = $msgs->[-1]->{num};
         } else {