]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: fixup bad comparison
authorEric Wong <e@80x24.org>
Thu, 8 Oct 2015 20:08:47 +0000 (20:08 +0000)
committerEric Wong <e@80x24.org>
Thu, 8 Oct 2015 20:08:47 +0000 (20:08 +0000)
Oops, there is no longer a 3rd element.

Fixes: 759efc037728a766ee80f1b0d3c1fd7b8c76a05f
("view: remove attribution for topics in top-level view")

lib/PublicInbox/View.pm

index 534b5539272e2e4357354c7a78ec6d795de6ff21..48c455362fa7aaf882669a6872dd43708a03944e 100644 (file)
@@ -825,7 +825,7 @@ sub add_topic {
 
                my $ts = $x->header('X-PI-TS');
                my $exist = $state->{latest}->{$topic};
-               if (!$exist || $exist->[2] < $ts) {
+               if (!$exist || $exist->[1] < $ts) {
                        $state->{latest}->{$topic} = [ $mid, $ts ];
                }
        } else {