feat(publish): illustrations travel inline (#34)
CI / ci (push) Canceled after 0s
CI / ci (push) Canceled after 0s
A piece's assets/ ink-sketch images publish with it: Send as Draft first uploads every referenced image to Micro.blog's media endpoint (q=config discovery, one multipart file POST per FILE — duplicate refs share an upload), then each  ref REWRITES IN PLACE with its uploaded URL in the wire content. The image renders exactly where the writer placed it and the alt rides the markdown; the piece on disk never changes. The first shape attached uploads as a Micropub photo property with mp-photo-alt — live dogfood (2026-11-01) showed the theme renders properties at the bottom of the post, losing position. No property ships at all now; inline refs are the only transport, which also makes the parsed body ref the only way an image ships — the alt floor at the illustration rail is therefore the only gate a photo needs (G12: a whitespace-empty alt refuses naming the file before anything touches the wire; the mentor is never consulted). Pre-flight gates every payload: the endpoint's exact formats (PNG/JPEG/GIF/WebP/SVG), path containment resolved through symlinks (a planted link never uploads outside-file bytes under the writer's token), all-or-nothing uploads. A URL carrying markdown-active characters rides the angle form  — a plain-paren destination would close at the first ) and smuggle a live link into the published post; the frontmatter trust gate does not cover markdown's grammar. Finish-audit (three reviewers) drove the angle form, the symlink containment, the per-file upload dedup, and four pins; all four behavior guards flip-verified in one batch cycle. Suite 546 passed / 0 failed; swiftformat + swiftlint clean. Ingest UX (drop image onto the editor) is #141, blocked by this issue.
This commit is contained in:
1 parent
414f1392ef
commit
695ec27e11
10 files changed
+840
-19
No files matched your search
@@ -5,6 +5,7 @@ Complete history of session logs in this directory, newest first. One-line summa
|
||||
<!-- write-log: full-index -->
|
||||
| Date | Type | File | Summary |
|
||||
|------|------|------|---------|
|
||||
| 2026-11-01 | issue | [20261101-issue34-m6-illustrations-travel-inline-s6-2_log.md](20261101-issue34-m6-illustrations-travel-inline-s6-2_log.md) | #34 illustrations: media-endpoint upload, refs rewrite INLINE with URLs (dogfood killed the photo property); audit: injection/symlink/dedup — 546 tests |
|
||||
| 2026-10-31 | issue | [20261031-issue33-m6-micropub-draft-publish-s6-1_log.md](20261031-issue33-m6-micropub-draft-publish-s6-1_log.md) | Two-step Micro.blog publish: Micropub draft→update, Keychain token, trustworthyURL gate, category inert |
|
||||
| 2026-10-31 | issue | [20261031-issue32-m4-trend-view-s5-2_log.md](20261031-issue32-m4-trend-view-s5-2_log.md) | #32 trend view: four metric charts over first-draft captures, read-back origin/type gate + finite parse; audit fixed nan/inf crash — 508 tests |
|
||||
| 2026-10-30 | issue | [20261030-issue122-blind-read-writer-triggered-whole-document-ab-judgment_log.md](20261030-issue122-blind-read-writer-triggered-whole-document-ab-judgment_log.md) | #122 Blind Read: advisory whole-document A/B on a fresh museion session, randomized unlabeled pair, reveal after verdict; 500 tests |
|
||||
|
||||
Reference in new issue
Block a user