From 5c79e05f082fe06daa6f3f02541e2651e9b29bdf Mon Sep 17 00:00:00 2001 From: Jessica Stokes Date: Sun, 20 Mar 2022 22:47:13 -0700 Subject: [PATCH] Inherit post date when rotating images --- ext/rotate/main.php | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/rotate/main.php b/ext/rotate/main.php index 035b8d0a..a5820b15 100644 --- a/ext/rotate/main.php +++ b/ext/rotate/main.php @@ -174,6 +174,7 @@ class RotateImage extends Extension $new_image->filename = 'rotated-'.$image_obj->filename; $new_image->width = $new_width; $new_image->height = $new_height; + $new_image->posted = $image_obj->posted; /* Move the new image into the main storage location */ $target = warehouse_path(Image::IMAGE_DIR, $new_image->hash);