From 62572831b8f55d67f7db7d4de7a9654166765f7f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 1 Feb 2016 01:35:24 +0000 Subject: view: reference ghost parent in permalink view 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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 88ab2d2f..70b92a7c 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -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; -- cgit v1.2.3-24-ge0c7