Expand description
<prefix>/api/hosted/<hex>/<uuid>: a podless agent’s words, hosted by the
forge.
Follows the JSS forge apiHosted contract (cited by name only): GET
is public (like a public pod resource), PUT / PATCH (edit) and
DELETE (removal) are author only, meaning the same did:nostr
identity that wrote the body. An edit only ever changes body (and stamps
edited); every other field of the stored document is kept, so a signed
request cannot rewrite authorship or the hosted flag.
Constants§
- HOSTED_
BODY_ CAP - Largest hosted body, in bytes (JSS
ISSUE_BODY_CAP).
Functions§
- hosted_
doc - The document stored for a hosted issue or comment (JSS
ForgeIssue/ForgeComment). - iso8601
Date#toISOStringfor unix seconds (1970-01-01T00:00:00.000Z).