From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.6 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: meta@public-inbox.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 11FEF1F612; Mon, 1 Feb 2016 02:04:53 +0000 (UTC) Date: Mon, 1 Feb 2016 02:04:53 +0000 From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] view: reference ghost parent in permalink view Message-ID: <20160201020453.GA11445@dcvr.yhbt.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: 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(-) diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 88ab2d2..70b92a7 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; -- EW