about summary refs log tree commit homepage
path: root/lib/PublicInbox/View.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-13 23:29:54 +0000
committerEric Wong <e@80x24.org>2015-09-13 23:29:54 +0000
commit04e278fe938f638ee9ceb2283addf56253317821 (patch)
treeeb1de9d6e26d79fa4501db2daf88f452d25a6239 /lib/PublicInbox/View.pm
parent97bf47dbea11455a69ea952cfbe1ecc44c4a3272 (diff)
downloadpublic-inbox-04e278fe938f638ee9ceb2283addf56253317821.tar.gz
It's a waste of space and potentially confusing.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r--lib/PublicInbox/View.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 2cda691c..aaab3b2a 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -434,7 +434,12 @@ sub headers_to_html_header {
         $rv .= "(<a\nhref=\"${upfx}raw\">raw</a>)\n";
         my $atom;
         if ($srch) {
-                $rv .= "<a\nhref=\"${upfx}t/\">References: [expand]</a>\n";
+                if ($header_obj->header('In-Reply-To') ||
+                    $header_obj->header('References')) {
+                        $rv .= "<a\nhref=\"${upfx}t/\">" .
+                                "References: [expand]</a>\n";
+                }
+
                 $atom = qq{<link\nrel=alternate\ntitle="Atom feed"\n} .
                         qq!href="${upfx}t.atom"\ntype="application/atom+xml"/>!;
         } else {