Merge pull request #876 from friends-of-the-core/preserve-posted-date-on-rotate

Preserve posted date on rotate
This commit is contained in:
Shish 2022-05-01 10:24:48 +01:00 committed by GitHub
commit 3f553501f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);