diff options
author | Eric Wong <e@80x24.org> | 2015-09-14 00:04:30 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-09-14 00:09:54 +0000 |
commit | 501730e6782d3f8839378145f56a53d205838931 (patch) | |
tree | 857d91acbed4ba8a1a32990dfb19bae68a8d5ffa /lib | |
parent | fcc36a6b5e6a54ce7c3cbdb559928fa7af0fd488 (diff) | |
download | public-inbox-501730e6782d3f8839378145f56a53d205838931.tar.gz |
Atom feeds only make sense when sorted by time, not when our search indexing rules change and affect relevance. So do not include the relevance option when linking to Atom feeds. However, we shall still honor the 'r' query parameter in case somebody wants to manually include that in the URL for testing/experimental purposes. We simply will not advertise it.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/SearchView.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index b65351aa..6bc66ceb 100644 --- a/lib/PublicInbox/SearchView.pm +++ b/lib/PublicInbox/SearchView.pm @@ -108,7 +108,7 @@ sub search_nav_top { $rv .= qq{<a\nhref="?$s">summary</a>|}; $rv .= qq{<b>threaded</b>}; } - my $A = $q->qs_html(x => 'A'); + my $A = $q->qs_html(x => 'A', r => undef); $rv .= qq{|<a\nhref="?$A">Atom</a>}; $rv .= ']'; } @@ -216,7 +216,7 @@ sub html_start { my $query = PublicInbox::Hval->new_oneline($q->{q}); my $qh = $query->as_html; - my $A = $q->qs_html(x => 'A'); + my $A = $q->qs_html(x => 'A', r => undef); my $res = "<html><head><title>$qh - search results</title>" . qq{<link\nrel=alternate\ntitle="Atom feed"\n} . qq!href="?$A"\ntype="application/atom+xml"/></head>! . |