* [PATCH 2/1] view: fixup bad comparison
@ 2015-10-09 18:55 7% ` Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2015-10-09 18:55 UTC (permalink / raw)
To: meta
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(-)
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 534b553..48c4553 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 {
--
EW
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2015-10-08 1:00 [PATCH] view: remove attribution for topics in top-level view Eric Wong
2015-10-09 18:55 7% ` [PATCH 2/1] view: fixup bad comparison Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).