Skip to content

fix: localize recipe photos on edit - #261

Merged
thebigjoe1 merged 1 commit into
TraceApps:devfrom
librarian:fix/inline-recipe-images
Oct 9, 2026
Merged

thebigjoe1 merged 1 commit into
TraceApps:devfrom
librarian:fix/inline-recipe-images

Conversation

@librarian

Copy link
Copy Markdown
Contributor

Problem:

Updating a recipe’s photo can make its image disappear from the web diary, although it remains visible in the recipe and Android client.

Reproduction:

  1. Create a recipe with a photo.
  2. Clone it and open the clone for editing.
  3. Rename it.
  4. Select a photo again—the same photo is sufficient—and save.
  5. Add the cloned recipe to the diary.
  6. Reload the web diary.

Reason why it happens:

The recipe edit endpoint (PUT /api/meals/:id) stores an embedded data:image/... URL without converting it to an uploaded file. The web diary excludes these embedded URLs when resolving images.

@thebigjoe1
thebigjoe1 merged commit 259c253 into TraceApps:dev Oct 9, 2026
1 check passed
thebigjoe1 added a commit that referenced this pull request Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants