From 62ee3cb36dd08f17e444e96dc80108464ee10cba Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 16 Sep 2015 10:05:13 +0000 Subject: view: do not shorten top-level messages in thread view The thread root is usually the most important, and should be displayed in full. --- lib/PublicInbox/View.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 65bc2f81..9ca4a6a4 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -117,7 +117,7 @@ sub index_entry { my $mhref = "${path}$href/"; # show full message if it's our root message - if ($root_anchor ne $id) { + if ($root_anchor ne $id || ($level != 0 && !$ctx->{flat})) { $fhref = "${path}$href/f/"; $more_ref = \$more; } -- cgit v1.2.3-24-ge0c7