From c6eb69349c32d9a749a5878364c427745bce3d1b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 5 Jul 2020 23:27:34 +0000 Subject: wwwatomstream: use PublicInbox::Inbox->modified for feed_updated 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(-) (limited to 'lib/PublicInbox') diff --git a/lib/PublicInbox/WwwAtomStream.pm b/lib/PublicInbox/WwwAtomStream.pm index c494fa22..35b536c1 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 -- cgit v1.2.3-24-ge0c7