From: Eric Wong Date: Sun, 5 Jul 2020 23:27:34 +0000 (+0000) Subject: wwwatomstream: use PublicInbox::Inbox->modified for feed_updated X-Git-Tag: v1.6.0~282 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=c6eb69349c32d9a749a5878364c427745bce3d1b 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). --- 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