]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Feed.pm
inbox: add ->version method
[public-inbox.git] / lib / PublicInbox / Feed.pm
index cbf25d46cf9359052b926ca69a9277a6787085d7..0bd458c94e2bdd05564f386136d0ddacbfaca83f 100644 (file)
@@ -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";
        }