} elsif ($path_info =~ m!$LISTNAME_RE\z!o) {
invalid_list(\%ctx, $1) || redirect_list_index(\%ctx, $cgi);
} elsif ($path_info =~ m!$LISTNAME_RE(?:/|/index\.html)?\z!o) {
} elsif ($path_info =~ m!$LISTNAME_RE\z!o) {
invalid_list(\%ctx, $1) || redirect_list_index(\%ctx, $cgi);
} elsif ($path_info =~ m!$LISTNAME_RE(?:/|/index\.html)?\z!o) {
- invalid_list(\%ctx, $1) || get_index(\%ctx, $cgi, 0);
+ invalid_list(\%ctx, $1) || get_index(\%ctx, $cgi);
} elsif ($path_info =~ m!$LISTNAME_RE/atom\.xml\z!o) {
} elsif ($path_info =~ m!$LISTNAME_RE/atom\.xml\z!o) {
- invalid_list(\%ctx, $1) || get_atom(\%ctx, $cgi, 0);
+ invalid_list(\%ctx, $1) || get_atom(\%ctx, $cgi);
# single-message pages
} elsif ($path_info =~ m!$LISTNAME_RE/m/(\S+)\.txt\z!o) {
# single-message pages
} elsif ($path_info =~ m!$LISTNAME_RE/m/(\S+)\.txt\z!o) {
# /$LISTNAME/atom.xml -> Atom feed, includes replies
sub get_atom {
# /$LISTNAME/atom.xml -> Atom feed, includes replies
sub get_atom {
- my ($ctx, $cgi, $top) = @_;
require PublicInbox::Feed;
[ 200, [ 'Content-Type' => 'application/xml' ],
[ PublicInbox::Feed->generate({
require PublicInbox::Feed;
[ 200, [ 'Content-Type' => 'application/xml' ],
[ PublicInbox::Feed->generate({
listname => $ctx->{listname},
pi_config => $pi_config,
cgi => $cgi,
listname => $ctx->{listname},
pi_config => $pi_config,
cgi => $cgi,
}) ]
];
}
# /$LISTNAME/?r=$GIT_COMMIT -> HTML only
sub get_index {
}) ]
];
}
# /$LISTNAME/?r=$GIT_COMMIT -> HTML only
sub get_index {
- my ($ctx, $cgi, $top) = @_;
require PublicInbox::Feed;
my $srch = searcher($ctx);
[ 200, [ 'Content-Type' => 'text/html; charset=UTF-8' ],
require PublicInbox::Feed;
my $srch = searcher($ctx);
[ 200, [ 'Content-Type' => 'text/html; charset=UTF-8' ],
pi_config => $pi_config,
cgi => $cgi,
footer => footer($ctx),
pi_config => $pi_config,
cgi => $cgi,
footer => footer($ctx),