From 2d5202a04db9d4c2db5490270e698207dfb918bf Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 8 Oct 2015 20:08:47 +0000 Subject: view: fixup bad comparison Oops, there is no longer a 3rd element. Fixes: 759efc037728a766ee80f1b0d3c1fd7b8c76a05f ("view: remove attribution for topics in top-level view") --- lib/PublicInbox/View.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 { -- cgit v1.2.3-24-ge0c7