mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-25 03:19:55 +01:00
fix(album): keep cover uploads out of Recently Added ordering
Cover upload/delete bumped album.updated_at to bust the artwork cache, but recentlyAddedSort() and Subsonic albumCreatedAt() sort on updated_at when RecentlyAddedByModTime is enabled, so a cover edit reordered Recently Added and shifted the reported creation date. Add a dedicated cover_art_updated_at column that UpdateImage bumps instead of updated_at; the album artwork id, reader cache key, and UI cover URL fold it into their cache-busting, so covers refresh everywhere while updated_at (and Recently Added) stays untouched. Also preserve uploaded_image across the phase-2 moved-track album-id change, which previously copied only created_at.
This commit is contained in:
parent
27a0841065
commit
319662174e
12 changed files with 116 additions and 37 deletions
|
|
@ -1,5 +1,9 @@
|
|||
-- +goose Up
|
||||
ALTER TABLE album ADD COLUMN uploaded_image varchar NOT NULL DEFAULT '';
|
||||
-- cover_art_updated_at tracks manual cover edits separately from updated_at, so
|
||||
-- busting the artwork cache never disturbs updated_at-based Recently Added ordering.
|
||||
ALTER TABLE album ADD COLUMN cover_art_updated_at datetime;
|
||||
|
||||
-- +goose Down
|
||||
ALTER TABLE album DROP COLUMN uploaded_image;
|
||||
ALTER TABLE album DROP COLUMN cover_art_updated_at;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue