]> Sergey Matveev's repositories - public-inbox.git/commitdiff
feed: remove unnecesary time paramenter in index state
authorEric Wong <e@80x24.org>
Mon, 17 Aug 2015 02:41:09 +0000 (02:41 +0000)
committerEric Wong <e@80x24.org>
Mon, 17 Aug 2015 03:13:29 +0000 (03:13 +0000)
We no longer do "smart" time displays as of
commit ea0e8649f90d1fd0850a41c0ca16642faadf4f14
("view: simplify timestamp generation").

In retrospect, that commit also made us more cache-friendly, too.

lib/PublicInbox/Feed.pm

index b53255975a3f309be44059fcc6fc7ec4436d86c8..1a89fbad076b94e99d9dcc6517474e0a3a9e079d 100644 (file)
@@ -76,7 +76,7 @@ sub generate_html_index {
        $th->order(*PublicInbox::Thread::sort_ts);
 
        # except we sort top-level messages reverse chronologically
-       my $state = [ time, {}, $first, 0 ];
+       my $state = [ undef, {}, $first, 0 ];
        for (PublicInbox::Thread::rsort_ts($th->rootset)) {
                dump_msg($_, 0, \$html, $state)
        }