about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-07-05 22:39:54 +0000
committerEric Wong <e@80x24.org>2016-07-06 07:12:45 +0000
commitc952a7208d9941495a9efbe83d0e4af866f05a64 (patch)
tree0a6e3fcb6d2baf248021eb8202fed70f14c7662c /lib/PublicInbox
parent2fb6b0150b8a8fc49385d21d7fd1f8a1deff5ebf (diff)
downloadpublic-inbox-c952a7208d9941495a9efbe83d0e4af866f05a64.tar.gz
Exposing compressed Message-IDs in URLs was a mistake,
remove a remnant of it.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/ExtMsg.pm2
-rw-r--r--lib/PublicInbox/Hval.pm2
-rw-r--r--lib/PublicInbox/View.pm4
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/PublicInbox/ExtMsg.pm b/lib/PublicInbox/ExtMsg.pm
index 73bd4b17..62381e9e 100644
--- a/lib/PublicInbox/ExtMsg.pm
+++ b/lib/PublicInbox/ExtMsg.pm
@@ -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";
diff --git a/lib/PublicInbox/Hval.pm b/lib/PublicInbox/Hval.pm
index 9ba78097..652aef3d 100644
--- a/lib/PublicInbox/Hval.pm
+++ b/lib/PublicInbox/Hval.pm
@@ -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);
 }
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index e8395ae9..dc6096f1 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -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;";