fix: a modification carries the deck's theme over (the edit the last commit described)
Some checks failed
Forgejo Docker Build / Root app tests (push) Successful in 57s
Forgejo Docker Build / Build Docker image (push) Successful in 7s
Forgejo Docker Build / End-to-end (browser) (push) Failing after 7s

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dv6sqaY6Vq3ChZHMem3cnU
This commit is contained in:
Daniel 2026-09-13 13:45:48 +02:00
parent 89f1aca8ed
commit 733510d85d

View file

@ -830,6 +830,9 @@ router.post('/my-resources/:id/refine', async function (req, res) {
revisedDeck.title = existingDeck.title;
revisedDeck.subtitle = existingDeck.subtitle;
revisedDeck.date = existingDeck.date;
// The look is the author's, not the model's: a modification never
// resets the theme. The column keeps it too, but the two should agree.
revisedDeck.theme = existingDeck.theme || existing.theme || revisedDeck.theme;
// Draw whatever the revised deck asked for, the same way generating does,
// so each new figure belongs to the slide that wanted it.
if (sources.wantsImages) {