]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/View.pm
www: remove unnecessary ghost checks
[public-inbox.git] / lib / PublicInbox / View.pm
index 5fb2b31c5997da6c8750ad1372221cd44004d15f..133c30a8e517e70e879a7fc9bc9a7c252d504f77 100644 (file)
@@ -63,7 +63,6 @@ sub msg_page {
                        for (; !defined($first) && $head != $tail; $head++) {
                                my @args = ($head, $db, $mid);
                                my $smsg = PublicInbox::SearchMsg->get(@args);
-                               next if $smsg->type ne 'mail';
                                $first = $ibx->msg_by_smsg($smsg);
                        }
                        if ($head != $tail) {
@@ -85,7 +84,6 @@ sub msg_html_more {
                my $mid = $ctx->{mid};
                for (; !defined($smsg) && $head != $tail; $head++) {
                        my $m = PublicInbox::SearchMsg->get($head, $db, $mid);
-                       next if $m->type ne 'mail';
                        $smsg = $ctx->{-inbox}->smsg_mime($m);
                }
                if ($head == $tail) { # done