Hi,

I use Lore and find the threaded results of many Lore Lists useful.
Then there is x86. It doesn't have a list, so I query:

https://lore.kernel.org/all/?q=tc:x...@kernel.org

The result of that query is not threaded. Can I change my query to
get the threading, or, as Dave Hansen suggested below, does the
underlying code need to change.  

Dave's diff follows. I don't have a means of trying that out.

I appreciate help in improving the view of x86!

Thanks,
Alison


diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm
index a8f1ad17..6d4c148d 100644
--- a/lib/PublicInbox/WWW.pm
+++ b/lib/PublicInbox/WWW.pm
@@ -266,7 +266,8 @@ sub get_new {
 sub get_index {
        my ($ctx) = @_;
        require PublicInbox::Feed;
-       if ($ctx->{env}->{QUERY_STRING} =~ /(?:\A|[&;])q=/) {
+       if (($ctx->{env}->{QUERY_STRING} =~ /(?:\A|[&;])q=/) &&
+           ($ctx->{env}->{QUERY_STRING} !~ /(?:\A|[&;])dothread=1/)) {
                require PublicInbox::SearchView;
                PublicInbox::SearchView::sres_top_html($ctx);
        } else {

Reply via email to