]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: do not hide patches or signatures
authorEric Wong <e@80x24.org>
Tue, 1 Mar 2016 02:08:38 +0000 (02:08 +0000)
committerEric Wong <e@80x24.org>
Tue, 1 Mar 2016 02:09:28 +0000 (02:09 +0000)
It's often not that much information and may be useful
to reduce HTTP requests a reader will want to make.

lib/PublicInbox/View.pm

index 6b81678ad1002226134705b35fae206612489720..de7bdf9c073eaba6c762f0fb8ae01f73200e0d33 100644 (file)
@@ -254,17 +254,6 @@ sub index_walk {
        my ($fh, $part, $enc, $part_nr, $fhref, $more) = @_;
        my $s = add_text_body($enc, $part, $part_nr, $fhref);
 
-       if ($more) {
-               my $m = 0;
-               # drop the remainder of git patches, they're usually better
-               # to review when the full message is viewed
-               $s =~ s!^---+\n.*\z!!ms and $m = 1;
-
-               # Drop signatures
-               $s =~ s/^-- \n.*\z//ms and $m = 1;
-               $$more = "<b>More...</b>\n\n$$more" if $m;
-       }
-
        # kill any leading or trailing whitespace lines
        $s =~ s/^\s*$//sgm;
        $s =~ s/\s+\z//s;