]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Feed.pm
treewide: run update-copyrights from gnulib for 2019
[public-inbox.git] / lib / PublicInbox / Feed.pm
index cbf25d46cf9359052b926ca69a9277a6787085d7..ae69af368e4d38cc111e51a37ee1dcc1fd62997e 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2013-2019 all contributors <meta@public-inbox.org>
+# Copyright (C) 2013-2020 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 #
 # Used for generating Atom feeds for web-accessible mailing list archives.
@@ -85,7 +85,7 @@ sub recent_msgs {
        my $ibx = $ctx->{-inbox};
        my $max = $ibx->{feedmax};
        my $qp = $ctx->{qp};
-       my $v = $ibx->{version} || 1;
+       my $v = $ibx->version;
        if ($v > 2) {
                die "BUG: unsupported inbox version: $v\n";
        }