diff options
author | Eric Wong <e@80x24.org> | 2024-01-09 11:39:27 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2024-01-10 10:27:00 +0000 |
commit | 48cbe0c3c8dc4d2671af19b87185ba68e9fdd689 (patch) | |
tree | f3ed06ae99698f533e3213efbdc247e53b2a43a4 /lib/PublicInbox/SearchView.pm | |
parent | e5b18ce1fb0a71099db31dbb2b57b220c1815ef7 (diff) | |
download | public-inbox-48cbe0c3c8dc4d2671af19b87185ba68e9fdd689.tar.gz |
This makes it easier to discover contemporary messages crossposted to other groups within the same WWW instance. The internal cache is necessary for giant threads, and the expiry mechanism is necessary to prevent attackers from trivially OOM-ing.
Diffstat (limited to 'lib/PublicInbox/SearchView.pm')
-rw-r--r-- | lib/PublicInbox/SearchView.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index 8f851738..2d3e942c 100644 --- a/lib/PublicInbox/SearchView.pm +++ b/lib/PublicInbox/SearchView.pm @@ -322,7 +322,7 @@ EOM # link $INBOX_DIR/description text to "recent" view around # the newest message in this result set: - $ctx->{-t_max} = max(map { delete $_->{ts} } @$msgs); + $ctx->{-t_max} = max(map { $_->{ts} } @$msgs); @$msgs = reverse @$msgs if $r; $ctx->{msgs} = $msgs; |