unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* Threaded responses to queries (x86)
@ 2023-05-25 18:56 Alison Schofield
  2023-05-31  7:50 ` Eric Wong
  0 siblings, 1 reply; 3+ messages in thread
From: Alison Schofield @ 2023-05-25 18:56 UTC (permalink / raw)
  To: meta; +Cc: Dave Hansen

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:x86@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 {

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-31 12:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-25 18:56 Threaded responses to queries (x86) Alison Schofield
2023-05-31  7:50 ` Eric Wong
2023-05-31 12:05   ` Konstantin Ryabitsev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).