about summary refs log tree commit homepage
path: root/lib/PublicInbox/View.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-01-08 10:30:42 +0000
committerEric Wong <e@80x24.org>2019-01-08 10:30:42 +0000
commit6b7b1b1624163f4fff4705e4cc341e3b7a5475fe (patch)
tree9f978e7b4b823fc3c3018eca9f8b894668609b69 /lib/PublicInbox/View.pm
parent0f0d6284b51db4e0f10b698a4461e45f2e774495 (diff)
downloadpublic-inbox-6b7b1b1624163f4fff4705e4cc341e3b7a5475fe.tar.gz
We need to parse the MIME object in order to get the
datestamp for those sites.

Fixes: 7d02b9e64455 ("view: stop storing all MIME objects on large threads")
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r--lib/PublicInbox/View.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 416cb4a8..5ddb8425 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -218,11 +218,12 @@ sub index_entry {
         $rv .= $subj . "\n";
         $rv .= _th_index_lite($mid_raw, \$irt, $id, $ctx);
         my @tocc;
+        my $ds = $smsg->ds; # for v1 non-Xapian/SQLite users
         my $mime = delete $smsg->{mime}; # critical to memory use
         my $hdr = $mime->header_obj;
         my $from = _hdr_names_html($hdr, 'From');
         obfuscate_addrs($obfs_ibx, $from) if $obfs_ibx;
-        $rv .= "From: $from @ ".fmt_ts($smsg->ds)." UTC";
+        $rv .= "From: $from @ ".fmt_ts($ds)." UTC";
         my $upfx = $ctx->{-upfx};
         my $mhref = $upfx . mid_escape($mid_raw) . '/';
         $rv .= qq{ (<a\nhref="$mhref">permalink</a> / };