]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: fix link to top-level ghost parent
authorEric Wong <e@80x24.org>
Mon, 8 Feb 2016 18:11:54 +0000 (18:11 +0000)
committerEric Wong <e@80x24.org>
Mon, 8 Feb 2016 18:13:02 +0000 (18:13 +0000)
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.

lib/PublicInbox/View.pm

index fc877b7cfe9b9773881c5230362bd65eccaae52e..8af51adfd6bc88f50b55f4cfb3b94877705551dd 100644 (file)
@@ -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";
                }