diff options
author | Eric Wong <e@80x24.org> | 2022-09-10 08:16:55 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-09-10 19:50:27 +0000 |
commit | e4baa06a7c01490744bc3fcd0b8a6136fd341323 (patch) | |
tree | 2f1e590a97b5ea7961bf5f71deb0d2ca320cd51a /lib/PublicInbox/Feed.pm | |
parent | 0eec12d630c1bac6f5a7850f37a7d67ecdbadf7e (diff) | |
download | public-inbox-e4baa06a7c01490744bc3fcd0b8a6136fd341323.tar.gz |
This simplifies parameter passing at the moment. I can't imagine an Atom feed reader would be parsing XML for 404s or other error codes.
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r-- | lib/PublicInbox/Feed.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index e0810420..bdfa0d9d 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -19,14 +19,14 @@ sub generate { my ($ctx) = @_; my $msgs = $ctx->{msgs} = recent_msgs($ctx); return _no_thread() unless @$msgs; - PublicInbox::WwwAtomStream->response($ctx, 200, \&generate_i); + PublicInbox::WwwAtomStream->response($ctx, \&generate_i); } sub generate_thread_atom { my ($ctx) = @_; my $msgs = $ctx->{msgs} = $ctx->{ibx}->over->get_thread($ctx->{mid}); return _no_thread() unless @$msgs; - PublicInbox::WwwAtomStream->response($ctx, 200, \&generate_i); + PublicInbox::WwwAtomStream->response($ctx, \&generate_i); } sub generate_html_index { |