pulsejet / memories

Fast, modern and advanced photo management suite. Runs as a Nextcloud app.
https://memories.gallery
GNU Affero General Public License v3.0
3.22k stars 87 forks source link

Exif: dispatch nodeWrittenEvent #1331

Closed rolandinus closed 1 week ago

rolandinus commented 1 month ago

When metadata/EXIF data are written in Memories, the native Nextcloud metadata handling isn't triggered since $file->touch() alone doesn't propagate these changes. This PR adds dispatching of the nodeWritten event to ensure proper metadata synchronization. Most EXIF tags are not present in the metadata one gets with the native $file->getMetadata() anyway, but e.g. the important copyright tag is. Also other apps might depend on this event to properly handle changes.