* [PATCH] view: reference ghost parent in permalink view
@ 2016-02-01 2:04 7% Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2016-02-01 2:04 UTC (permalink / raw)
To: meta
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
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-02-01 2:04 7% [PATCH] view: reference ghost parent in permalink view Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).