mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-13 15:51:00 +00:00
a955328070
Linking a gallery photo to an entry and taking it off told nobody, so other tabs, and the journey page after an assistant change, stayed as they were. Both now go through a photo links service that broadcasts journey:entry:updated after the write, with the asking socket left out on REST; a caption change through PATCH photos/:id broadcasts journey:updated the same way. The service also moves photos from one entry to another of the same journey in one transaction, as POST /api/journeys/entries/:entryId/photos/move, with a strict contract. The MCP tools link_journey_photo, unlink_journey_photo, move_journey_photos and set_journey_photo_caption call the same methods; the caption tool answers the caption it replaced.