about summary refs log tree commit homepage
path: root/lib/PublicInbox/Feed.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-07-05 23:27:39 +0000
committerEric Wong <e@yhbt.net>2020-07-06 20:01:15 +0000
commit55263c56cf41c87f8977cd6a6be65ac07b5cea87 (patch)
treef3e711c2d82fd8bf1e179d7133bd89f7cc924067 /lib/PublicInbox/Feed.pm
parent52a02a813a46940530183ede4d4cc7028290cd8f (diff)
downloadpublic-inbox-55263c56cf41c87f8977cd6a6be65ac07b5cea87.tar.gz
wwwstream: reduce blob fetch paths for ->getline
This will make it easier to support asynchronous blob
retrievals.  The `$ctx->{nr}' counter is no longer implicitly
supplied since many users didn't care for it, so stack overhead
is slightly reduced.
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r--lib/PublicInbox/Feed.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm
index f25dd267..b15fc3a0 100644
--- a/lib/PublicInbox/Feed.pm
+++ b/lib/PublicInbox/Feed.pm
@@ -50,7 +50,8 @@ sub generate_html_index {
 }
 
 sub new_html_i {
-        my ($nr, $ctx) = @_;
+        my ($ctx) = @_;
+        return $ctx->html_top if exists $ctx->{-html_tip};
         my $msgs = $ctx->{msgs};
         while (my $smsg = shift @$msgs) {
                 my $eml = $ctx->{-inbox}->smsg_eml($smsg) or next;