]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Feed.pm
www: do not unecessarily escape some chars in paths
[public-inbox.git] / lib / PublicInbox / Feed.pm
index 240c336f72d96e7ef1714e5fd57cf4c7d8e673d4..232a91c097f16c78ebc7fdb66e7a5bf03493887e 100644 (file)
@@ -137,7 +137,7 @@ sub emit_atom_thread {
        my $fh = $cb->([200, ['Content-Type' => 'application/atom+xml']]);
        my $ibx = $ctx->{-inbox};
        my $html_url = $ibx->base_url($ctx->{env});
-       $html_url .= PublicInbox::Hval->new_msgid($mid)->as_href;
+       $html_url .= PublicInbox::Hval->new_msgid($mid)->{href};
 
        $feed_opts->{url} = $html_url;
        $feed_opts->{emit_header} = 1;
@@ -269,7 +269,7 @@ sub feed_entry {
        my $mid = $header_obj->header_raw('Message-ID');
        defined $mid or return;
        $mid = PublicInbox::Hval->new_msgid($mid);
-       my $href = $midurl . $mid->as_href . '/';
+       my $href = $midurl . $mid->{href}. '/';
 
        my $date = $header_obj->header('Date');
        my $updated = feed_updated($date);