]> scripts.mit.edu Git - www/ikiwiki.git/blobdiff - IkiWiki/Plugin/aggregate.pm
* aggregate: Don't let feeds set creation times for pages in the future.
[www/ikiwiki.git] / IkiWiki / Plugin / aggregate.pm
index a2c10ce5c337395ca53ef58c396cb0d8009f3ad6..0da527f25e7bff733b0f64473e6fc7f67d323982 100644 (file)
@@ -416,7 +416,8 @@ sub add_page (@) { #{{{
 
        # Set the mtime, this lets the build process get the right creation
        # time on record for the new page.
-       utime $mtime, $mtime, pagefile($guid->{page}) if defined $mtime;
+       utime $mtime, $mtime, pagefile($guid->{page})
+               if defined $mtime && $mtime <= time;
 } #}}}
 
 sub htmlescape ($) { #{{{