]> Sergey Matveev's repositories - public-inbox.git/blobdiff - Documentation/mknews.perl
wwwatomstream: move {emit_header} field to $self
[public-inbox.git] / Documentation / mknews.perl
index d803ca7753b1b716dc7cb05003194e419220eba8..a9dede004aee78b5b37fa5e72684b8760e44d9ab 100755 (executable)
@@ -103,7 +103,7 @@ sub mime2txt {
 
 sub mime2html {
        my ($out, $mime, $ctx) = @_;
-       my $smsg = bless { mime => $mime }, 'PublicInbox::SearchMsg';
+       my $smsg = bless { mime => $mime }, 'PublicInbox::Smsg';
        print $out PublicInbox::View::index_entry($smsg, $ctx, 1) or die;
 }
 
@@ -127,7 +127,7 @@ sub atom_start {
        require PublicInbox::WwwAtomStream;
        # WwwAtomStream stats this dir for mtime
        my $astream = PublicInbox::WwwAtomStream->new($ctx);
-       delete $ctx->{emit_header};
+       delete $astream->{emit_header};
        my $ibx = $ctx->{-inbox};
        my $title = PublicInbox::WwwAtomStream::title_tag($ibx->description);
        my $updated = PublicInbox::WwwAtomStream::feed_updated(gmtime($mtime));
@@ -147,7 +147,7 @@ EOF
 
 sub mime2atom  {
        my ($out, $astream, $mime, $ctx) = @_;
-       my $smsg = bless { mime => $mime }, 'PublicInbox::SearchMsg';
+       my $smsg = bless { mime => $mime }, 'PublicInbox::Smsg';
        if (defined(my $str = $astream->feed_entry($smsg))) {
                print $out $str or die;
        }