about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-10-08 20:08:47 +0000
committerEric Wong <e@80x24.org>2015-10-08 20:08:47 +0000
commit2d5202a04db9d4c2db5490270e698207dfb918bf (patch)
tree8ec54f01359bfcfcdad92442a89b45109313ab97 /lib
parent759efc037728a766ee80f1b0d3c1fd7b8c76a05f (diff)
downloadpublic-inbox-2d5202a04db9d4c2db5490270e698207dfb918bf.tar.gz
Oops, there is no longer a 3rd element.

Fixes: 759efc037728a766ee80f1b0d3c1fd7b8c76a05f
("view: remove attribution for topics in top-level view")
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/View.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 534b5539..48c45536 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -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 {