about summary refs log tree commit homepage
path: root/lib/PublicInbox/WWW.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-06-30 02:35:14 +0000
committerEric Wong <e@80x24.org>2016-06-30 07:13:06 +0000
commit5422a844b7384c32b3532d128e15e0b50d24435b (patch)
treebc279f571dace8a3205c4d2e4e7de56f134f4817 /lib/PublicInbox/WWW.pm
parent5c5dfb7d5558ff248477fa57aef08e2a8bbd9800 (diff)
downloadpublic-inbox-5422a844b7384c32b3532d128e15e0b50d24435b.tar.gz
This allows us the HTTP server to react to backpressure
from slow clients when writing.  As a side effect, this
also makes it easier for us to maintain a consistent
header/footer across our HTML.
Diffstat (limited to 'lib/PublicInbox/WWW.pm')
-rw-r--r--lib/PublicInbox/WWW.pm9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm
index 984268e9..196486f2 100644
--- a/lib/PublicInbox/WWW.pm
+++ b/lib/PublicInbox/WWW.pm
@@ -233,12 +233,10 @@ sub get_mid_html {
 
 # /$INBOX/$MESSAGE_ID/t/
 sub get_thread {
-        my ($ctx, $flat) = @_;
-        my $srch = searcher($ctx) or return need_search($ctx);
+        my ($ctx) = @_;
+        searcher($ctx) or return need_search($ctx);
         require PublicInbox::View;
-        my $foot = footer($ctx);
-        $ctx->{flat} = $flat;
-        PublicInbox::View::thread_html($ctx, $foot, $srch);
+        PublicInbox::View::thread_html($ctx);
 }
 
 sub ctx_get {
@@ -414,7 +412,6 @@ sub msg_page {
         't.atom' eq $e and return get_thread_atom($ctx);
         't.mbox' eq $e and return get_thread_mbox($ctx);
         't.mbox.gz' eq $e and return get_thread_mbox($ctx, '.gz');
-        'T/' eq $e and return get_thread($ctx, 1);
         'raw' eq $e and return get_mid_txt($ctx);
 
         # legacy, but no redirect for compatibility: