From: Eric Wong Date: Wed, 16 Sep 2015 10:05:13 +0000 (+0000) Subject: view: do not shorten top-level messages in thread view X-Git-Tag: v1.0.0~874 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62ee3cb36dd08f17e444e96dc80108464ee10cba;p=thirdparty%2Fpublic-inbox.git view: do not shorten top-level messages in thread view The thread root is usually the most important, and should be displayed in full. --- diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 65bc2f810..9ca4a6a41 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; }