]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: do not shorten top-level messages in thread view
authorEric Wong <e@80x24.org>
Wed, 16 Sep 2015 10:05:13 +0000 (10:05 +0000)
committerEric Wong <e@80x24.org>
Wed, 16 Sep 2015 10:05:13 +0000 (10:05 +0000)
The thread root is usually the most important, and should
be displayed in full.

lib/PublicInbox/View.pm

index 65bc2f810be2bf2eff794e649455094241ba3392..9ca4a6a419ab49e1b1c488783d880b36df5fe92f 100644 (file)
@@ -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;
        }