about summary refs log tree commit homepage
diff options
context:
space:
mode:
-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 {