]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/View.pm
view: remove "created" and "updated" noise words
[public-inbox.git] / lib / PublicInbox / View.pm
index 534b5539272e2e4357354c7a78ec6d795de6ff21..ce97f6152376ec4b591f87208d107965e55063fa 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 {
@@ -861,13 +861,13 @@ sub dump_topics {
                my $attr;
                $ts = POSIX::strftime('%Y-%m-%d %H:%M', gmtime($ts));
                if ($n == 1) {
-                       $attr = "created @ $ts UTC";
+                       $attr = "@ $ts UTC";
                        $n = "";
                } else {
                        # $n isn't the total number of posts on the topic,
                        # just the number of posts in the current results
                        # window, so leave it unlabeled
-                       $attr = "updated @ $ts UTC";
+                       $attr = "@ $ts UTC";
                        $n = " ($n)";
                }
                if ($level == 0 || $attr ne $prev_attr) {