From b39e6e140d7a074dfb5c7b768285736511e04d97 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 21 Apr 2014 10:00:21 +0000 Subject: feed: there is only one atom feed, with all messages This is not a blog. All posts, whether replies or not, carry equal weight. --- public-inbox.cgi | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'public-inbox.cgi') diff --git a/public-inbox.cgi b/public-inbox.cgi index 03202c61..33313bf5 100755 --- a/public-inbox.cgi +++ b/public-inbox.cgi @@ -65,9 +65,7 @@ sub main { 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); - } elsif ($path_info =~ m!$LISTNAME_RE/index\.atom\.xml\z!o) { - invalid_list(\%ctx, $1) || get_atom(\%ctx, $cgi, 1); - } elsif ($path_info =~ m!$LISTNAME_RE/all\.atom\.xml\z!o) { + } elsif ($path_info =~ m!$LISTNAME_RE/atom\.xml\z!o) { invalid_list(\%ctx, $1) || get_atom(\%ctx, $cgi, 0); # single-message pages @@ -114,8 +112,7 @@ sub invalid_list_mid { undef; } -# /$LISTNAME/index.atom.xml -> Atom feed -# /$LISTNAME/all.atom.xml -> Atom feed, includes replies +# /$LISTNAME/atom.xml -> Atom feed, includes replies sub get_atom { my ($ctx, $cgi, $top) = @_; require PublicInbox::Feed; -- cgit v1.2.3-24-ge0c7