From 134a1bd89825de31316efeecd66a6156ae332b92 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 18 Jan 2023 10:34:34 -0800 Subject: [PATCH] image: touch file on exif change (fix #282) --- lib/Controller/ImageController.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/Controller/ImageController.php b/lib/Controller/ImageController.php index 67533325..17711fdf 100644 --- a/lib/Controller/ImageController.php +++ b/lib/Controller/ImageController.php @@ -24,7 +24,6 @@ declare(strict_types=1); namespace OCA\Memories\Controller; use OCA\Memories\AppInfo\Application; -use OCA\Memories\Db\TimelineWrite; use OCA\Memories\Exif; use OCP\AppFramework\Http; use OCP\AppFramework\Http\FileDisplayResponse; @@ -240,9 +239,8 @@ class ImageController extends ApiBase $file->putContent(fopen($path, 'r')); // closes the handler } - // Reprocess the file - $timelineWrite = new TimelineWrite($this->connection); - $timelineWrite->processFile($file, true); + // Touch the file, triggering a reprocess through the hook + $file->touch(); return new JSONResponse([], Http::STATUS_OK); }