From: Eric Wong Date: Mon, 8 Feb 2016 18:11:54 +0000 (+0000) Subject: view: fix link to top-level ghost parent X-Git-Tag: v1.0.0~729 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=4ff467429242ec7e18158de7ed203f13761e9dcf;p=public-inbox.git view: fix link to top-level ghost parent In an single-message thread with a ghost parent, we need to go up level from the current Message-ID before appending the parent message to us. --- diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index fc877b7c..8af51adf 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -471,7 +471,7 @@ sub thread_inline { if ($nr <= 1) { if (defined $parent) { $$dst .= "($expand)\n "; - $$dst .= ghost_parent($upfx, $parent) . "\n"; + $$dst .= ghost_parent("$upfx../", $parent) . "\n"; } else { $$dst .= "[no followups, yet] ($expand)\n"; }