about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-06-01 10:06:57 +0000
committerEric Wong <e@yhbt.net>2020-06-03 04:04:21 +0000
commitdf20a9c0c72433f027bc99c019b7e270ed3f105c (patch)
tree5bc0100c8fc933e1f5adc95ff38db3d495f6dd18
parent62b80b61d334361677e26e9ddb966e6bc5f8635d (diff)
downloadpublic-inbox-df20a9c0c72433f027bc99c019b7e270ed3f105c.tar.gz
wwwatomstream: drop smsg->{mid} fallback for non-SQLite
It's no longer necessary to populate the smsg->{mid} field now
that ->smsg_eml calls smsg->populate in rare cases where the
smsg did not originate from SQLite.
-rw-r--r--lib/PublicInbox/WwwAtomStream.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/WwwAtomStream.pm b/lib/PublicInbox/WwwAtomStream.pm
index 6ed0cb21..9dc24e16 100644
--- a/lib/PublicInbox/WwwAtomStream.pm
+++ b/lib/PublicInbox/WwwAtomStream.pm
@@ -12,7 +12,6 @@ use warnings;
 use POSIX qw(strftime);
 use Digest::SHA qw(sha1_hex);
 use PublicInbox::Address;
-use PublicInbox::MID qw(mids);
 use PublicInbox::Hval qw(ascii_html mid_href);
 use PublicInbox::MsgTime qw(msg_timestamp);
 
@@ -102,7 +101,7 @@ sub feed_entry {
         my $ctx = $self->{ctx};
         my $eml = $ctx->{-inbox}->smsg_eml($smsg) or return '';
         my $hdr = $eml->header_obj;
-        my $mid = $smsg->{mid} // mids($hdr)->[0];
+        my $mid = $smsg->{mid};
         my $irt = PublicInbox::View::in_reply_to($hdr);
         my $uuid = to_uuid($mid);
         my $base = $ctx->{feed_base_url};