From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 46B4D1F922 for ; Sun, 5 Jul 2020 23:28:09 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 18/43] wwwatomstream: use PublicInbox::Inbox->modified for feed_updated Date: Sun, 5 Jul 2020 23:27:34 +0000 Message-Id: <20200705232759.3161-19-e@yhbt.net> In-Reply-To: <20200705232759.3161-1-e@yhbt.net> References: <20200705232759.3161-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: stat(2) on the inboxdir is unlikely to be correct, now that msgmap truncates its journal (rather than unlinking it). --- lib/PublicInbox/WwwAtomStream.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/PublicInbox/WwwAtomStream.pm b/lib/PublicInbox/WwwAtomStream.pm index c494fa226..35b536c1c 100644 --- a/lib/PublicInbox/WwwAtomStream.pm +++ b/lib/PublicInbox/WwwAtomStream.pm @@ -93,8 +93,6 @@ sub atom_header { $self_url .= 'new.atom'; $page_id = "mailto:$ibx->{-primary_address}"; } - my $mtime = (stat($ibx->{inboxdir}))[9] || time; - qq(\n) . qq() . @@ -103,7 +101,7 @@ sub atom_header { qq(\nhref="$base_url"/>) . qq() . qq($page_id) . - feed_updated($mtime); + feed_updated($ibx->modified); } # returns undef or string