]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/ManifestJsGz.pm
wwwstream: show relative coderepo URLs correctly
[public-inbox.git] / lib / PublicInbox / ManifestJsGz.pm
index fb7a45e733d084d6e47eeec056ffca6068c43f03..e02450fa6dee5bcd35aab49504f68c7a62a24e90 100644 (file)
@@ -61,6 +61,7 @@ sub eidx_manifest_add ($$$) {
        my ($ctx, $ALL, $ibx) = @_;
        if (my $data = $ALL->misc->inbox_data($ibx)) {
                $data = $json->decode($data);
+               delete $data->{''}; # private
                while (my ($url_path, $ent) = each %$data) {
                        inject_entry($ctx, $url_path, $ent);
                }
@@ -98,4 +99,11 @@ sub psgi_triple {
                 'Content-Length', bytes::length($out) ], [ $out ] ]
 }
 
+sub per_inbox {
+       my ($ctx) = @_;
+       # only one inbox, slow is probably OK
+       slow_manifest_add($ctx, $ctx->{ibx});
+       psgi_triple($ctx);
+}
+
 1;