]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: reference ghost parent in permalink view
authorEric Wong <e@80x24.org>
Mon, 1 Feb 2016 01:35:24 +0000 (01:35 +0000)
committerEric Wong <e@80x24.org>
Mon, 1 Feb 2016 01:37:15 +0000 (01:37 +0000)
We should not hide the parent Message-ID in this view;
give the user the option to find the message in other archives.

lib/PublicInbox/View.pm

index 88ab2d2f730a3cbb3fe58394dd7fa29a2c69afb9..70b92a7cff30ca8e15886e0ed73bfad729f7ba4f 100644 (file)
@@ -469,7 +469,12 @@ sub thread_inline {
        $$dst .= 'Thread: ';
        my $parent = in_reply_to($cur);
        if ($nr <= 1) {
-               $$dst .= "[no followups, yet] ($expand)\n";
+               if (defined $parent) {
+                       $$dst .= "($expand)\n ";
+                       $$dst .= ghost_parent($upfx, $parent) . "\n";
+               } else {
+                       $$dst .= "[no followups, yet] ($expand)\n";
+               }
                $ctx->{next_msg} = undef;
                $ctx->{parent_msg} = $parent;
                return;