Commit graph

2 commits

Author SHA1 Message Date
Deluan
ee7c4d3b88 fix(album): never write over a cover file shared by another album
The shared-file guard stopped deletion, but re-uploading a cover on the album
whose id matches the shared filename derived the same deterministic path, and
SetImage's os.Create truncated the file the other album still references —
silently changing its cover too.

When the current file is shared, upload under a de-duplicated name so the
derived filename is unique; the shared file stays intact for the other row
and the purge GC reaps it when the last reference goes.
2026-07-17 23:36:08 -04:00
Deluan
940dbe4c0a feat(album): add cover upload/delete API endpoints 2026-07-17 19:02:14 -04:00