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.
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.