1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Images: Updated image timestamp upon file change

For #4354
This commit is contained in:
Dan Brown
2023-07-05 11:28:03 +01:00
parent 18ee80a743
commit 96819b7bd9
2 changed files with 8 additions and 0 deletions

View File

@@ -177,6 +177,7 @@ class ImageRepo
$image->refresh();
$image->updated_by = user()->id;
$image->touch();
$image->save();
$this->imageService->replaceExistingFromUpload($image->path, $image->type, $file);
$this->loadThumbs($image, true);