image: touch file on exif change (fix #282)

pull/363/head
Varun Patil 2023-01-18 10:34:34 -08:00
parent 998fd27dc7
commit 134a1bd898
1 changed files with 2 additions and 4 deletions

View File

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