Skip to content

Journal sync: show pictures from inside Chronicle page text #127

Description

@keyxmakerx

What

Chronicle pages can now hold pictures inside their text (keyxmakerx/Chronicle#997). The page HTML stores each one as <figure class="ce-img …">``&lt;img src="/media/&lt;id&gt;"&gt;'``, a path relative to the Chronicle server. When journal sync copies a page into a Foundry journal, the relative src` resolves against Foundry's own address, so the picture shows as broken.

Fix

On pull, resolve /media/<id> image sources the way map sync already does for map pictures (scripts/map-sync.mjs _resolveMediaUrl, the /media/:id metadata endpoint). GM-only pictures never arrive, because Chronicle removes them before sync. On push, write the plain /media/<id> path back, never a signed or absolute link.

Waits on Chronicle#997 merging.


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions