]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/NewsWWW.pm
hval: export prurl and add prototype
[public-inbox.git] / lib / PublicInbox / NewsWWW.pm
index ee11a0890b1f598dda2d89b27202658da0a9e7e6..be1d43efa6312b549d701188184cedae5cc47160 100644 (file)
@@ -10,6 +10,7 @@ use strict;
 use warnings;
 use PublicInbox::Config;
 use PublicInbox::MID qw(mid_escape);
+use PublicInbox::Hval qw(prurl);
 
 sub new {
        my ($class, $pi_config) = @_;
@@ -48,7 +49,7 @@ sub call {
        my ($ng, $article) = @parts;
        my $pi_config = $self->{pi_config};
        if (my $ibx = $pi_config->lookup_newsgroup($ng)) {
-               my $url = PublicInbox::Hval::prurl($env, $ibx->{url});
+               my $url = prurl($env, $ibx->{url});
                my $code = 301;
                if (defined $article && $article =~ /\A[0-9]+\z/) {
                        my $mid = eval { $ibx->mm->mid_for($article) };