mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-01 14:07:34 -06:00
The new record for a catalog photo whose bytes match another library photo copied that whole record and reset a few fields, so the other photo's edits, history, versions, ratings and written metadata (title, keywords, face regions) carried over, from a trashed photo too. It now starts as a new photo and takes only what the bytes determine: format, size, kind, capture time, camera EXIF, GPS, focus point, content hash, embedded lens data and preview-only state. The catalog's own settings and metadata apply on top as before. Tests: the duplicate test gives the other photo edits, history, a version, a title, keywords and a Local baseline and checks none reach the new record; a reimport after a master and its virtual copy were trashed counts each once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>