]> Sergey Matveev's repositories - public-inbox.git/commitdiff
hval: get rid of unused parameter for new_msgid
authorEric Wong <e@80x24.org>
Tue, 5 Jul 2016 22:39:54 +0000 (22:39 +0000)
committerEric Wong <e@80x24.org>
Wed, 6 Jul 2016 07:12:45 +0000 (07:12 +0000)
Exposing compressed Message-IDs in URLs was a mistake,
remove a remnant of it.

lib/PublicInbox/ExtMsg.pm
lib/PublicInbox/Hval.pm
lib/PublicInbox/View.pm

index 73bd4b17fe9c983d632f9e70b1b0bef1f64866b4..62381e9e5e8c4457c1546919d3c9b9d87dc88edd 100644 (file)
@@ -99,7 +99,7 @@ again:
        }
 
        my $code = 404;
-       my $h = PublicInbox::Hval->new_msgid($mid, 1);
+       my $h = PublicInbox::Hval->new_msgid($mid);
        my $href = $h->as_href;
        my $html = $h->as_html;
        my $title = "Message-ID &lt;$html&gt; not found";
index 9ba780975cf2d5b1a5ca5188affbe3efa891acf2..652aef3daee55ab926e31262e0b722b1efbe568e 100644 (file)
@@ -31,7 +31,7 @@ sub new {
 }
 
 sub new_msgid {
-       my ($class, $msgid, $no_compress) = @_;
+       my ($class, $msgid) = @_;
        $msgid = mid_clean($msgid);
        $class->new($msgid, $msgid);
 }
index e8395ae91fb1c9558cccefa8abda7cefd3f13bba..dc6096f1df8a29f661ffa162efcdf9298c5eb65f 100644 (file)
@@ -551,7 +551,7 @@ sub _parent_headers {
 
        my $irt = in_reply_to($hdr);
        if (defined $irt) {
-               my $v = PublicInbox::Hval->new_msgid($irt, 1);
+               my $v = PublicInbox::Hval->new_msgid($irt);
                my $html = $v->as_html;
                my $href = $v->as_href;
                $rv .= "In-Reply-To: &lt;";
@@ -661,7 +661,7 @@ sub html_footer {
 }
 
 sub linkify_ref_nosrch {
-       my $v = PublicInbox::Hval->new_msgid($_[0], 1);
+       my $v = PublicInbox::Hval->new_msgid($_[0]);
        my $html = $v->as_html;
        my $href = $v->as_href;
        "&lt;<a\nhref=\"../$href/\">$html</a>&gt;";