about summary refs log tree commit homepage
path: root/lib/PublicInbox/Smsg.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-03-20 08:18:16 +0000
committerEric Wong <e@yhbt.net>2020-03-22 09:00:23 +0000
commit33ce2aa920d9ebffb0affcb216ebf03320c7492d (patch)
treea50962f2548851ade9cfaac353e612f2578ba8b7 /lib/PublicInbox/Smsg.pm
parent87678710135973f72722258e171fc00f85c86ec8 (diff)
downloadpublic-inbox-33ce2aa920d9ebffb0affcb216ebf03320c7492d.tar.gz
No need to pass extra parameters to this method, since
smsg has universal meanings for {blob} and {mid}.
Diffstat (limited to 'lib/PublicInbox/Smsg.pm')
-rw-r--r--lib/PublicInbox/Smsg.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/PublicInbox/Smsg.pm b/lib/PublicInbox/Smsg.pm
index 7a47703a..5eb0723f 100644
--- a/lib/PublicInbox/Smsg.pm
+++ b/lib/PublicInbox/Smsg.pm
@@ -34,16 +34,15 @@ sub get_val ($$) {
 }
 
 sub to_doc_data {
-        my ($self, $oid, $mid0) = @_;
-        $oid = '' unless defined $oid;
+        my ($self) = @_;
         join("\n",
                 $self->subject,
                 $self->from,
                 $self->references,
                 $self->to,
                 $self->cc,
-                $oid,
-                $mid0,
+                $self->{blob},
+                $self->{mid},
                 $self->{bytes} // '',
                 $self->{lines} // ''
         );