]> Sergey Matveev's repositories - public-inbox.git/blobdiff - public-inbox-cgi
feed: generate takes a hashref for args
[public-inbox.git] / public-inbox-cgi
index cfcf3feb5da4e0d43b9c638bc9404597d96e4d68..ccfaae3789d1f0322c86f24b3aaf25d44f07c7be 100755 (executable)
@@ -73,8 +73,12 @@ sub get_atom_all {
        print $cgi->header(-type => "application/xml", -charset => 'us-ascii',
                                -status => '200 OK');
 
-       print PublicInbox::Feed->generate($git_dir, undef,
-                                       $pi_config, $listname, $cgi);
+       print PublicInbox::Feed->generate({
+               git_dir => $git_dir,
+               pi_config => $pi_config,
+               listname => $listname,
+               cgi => $cgi
+       });
 }
 
 # /$LISTNAME/index.atom.xml    -> Atom feed
@@ -86,7 +90,11 @@ sub get_atom_index {
        require PublicInbox::Feed;
        print $cgi->header(-type => "application/xml", -charset => 'us-ascii',
                                -status => '200 OK');
-
-       print PublicInbox::Feed->generate($git_dir, undef,
-                                       $pi_config, $listname, $cgi, 1);
+       print PublicInbox::Feed->generate({
+               git_dir => $git_dir,
+               pi_config => $pi_config,
+               listname => $listname,
+               cgi => $cgi,
+               top => 1
+       });
 }