Changeset 4c70ecb in Klonkt for src/middleware/render.js

Timestamp:
07/21/2026 11:44:49 PM (7 weeks ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
8b07c12
Parents:
fb30b5d
Message:

C2S Block and Undo(Block): Shaer's Orbit becomes a real server block

Putting someone "in Orbit" in Shaer was client-side only. The C2S outbox
now accepts Block and Undo(Block), wired onto the same blockTarget/unblock
the web UI uses: the actor lands in ap_blocks, shows up in the Block tab,
and their cached content is purged. Releasing from Orbit undoes it.

Changed files:
src/services/ActivityPubService.js

  • ingestOutboxActivity: case 'Block' -> blockTarget(site, uri), 202
  • Undo with inner Block -> unblock(site, uri), 202

New file:
test/c2s-block.test.js

  • Block lands in ap_blocks, Undo releases, missing object is 400

Changed files:
test/c2s-outbox.test.js

  • the unsupported-Undo example was Block; that is real now, the test uses Move instead

151 tests, all green.

-robo
Co-Authored-By: Claude Opus 4.8 <noreply@…>

(No files)

Note: See TracChangeset for help on using the changeset viewer.