diff options
author | Eric Wong <e@80x24.org> | 2016-06-30 02:35:15 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-06-30 07:24:37 +0000 |
commit | 1e0b530449910eb35561e068de7e4084175b78e6 (patch) | |
tree | 6ec2aa8873cebc1f8fc895a08a3c1aed5d2bef21 /lib/PublicInbox/Feed.pm | |
parent | 5422a844b7384c32b3532d128e15e0b50d24435b (diff) | |
download | public-inbox-1e0b530449910eb35561e068de7e4084175b78e6.tar.gz |
This lets user have a small window of the context of the current message relative to other threads.
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r-- | lib/PublicInbox/Feed.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 36802fa1..73986e83 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -138,6 +138,7 @@ sub emit_html_index { my $fh = $res->([200,['Content-Type'=>'text/html; charset=UTF-8']]); my $max = $ctx->{max} || MAX_PER_PAGE; + $ctx->{-upfx} = ''; my ($footer, $param, $last); my $state = { ctx => $ctx, seen => {}, anchor_idx => 0, fh => $fh }; @@ -174,7 +175,7 @@ sub emit_index_nosrch { $state->{first} ||= $commit; my $mime = do_cat_mail($ibx, $path) or return 0; - $fh->write(PublicInbox::View::index_entry($mime, $state)); + $fh->write(PublicInbox::View::index_entry($mime, $state, 1)); 1; }); $last; |