Changeset d3b9f68 in Klonkt for src/config/database.js

Timestamp:
06/30/2026 02:38:47 AM (2 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
432831c
Parents:
e0a1ec1
Message:

feat(federation): full JSON-LD @context on all AP objects (valid AS2)

Every object now carries a complete @context (AS2 + security/v1 + term definitions for the
Mastodon/toot + schema.org extensions we emit: sensitive, Hashtag, manuallyApprovesFollowers,
discoverable, featured, PropertyValue, embedUrl). Previously these were emitted under only the
bare AS2 context, so a strict JSON-LD processor dropped them — Mastodon tolerated it but it
wasn't valid AS2/JSON-LD. It is the same context shape Mastodon publishes, so Mastodon sees no
change while strict consumers now resolve every term.

  • src/services/ActivityPubService.js — shared AP_CONTEXT on every object/activity; removed the now-dead local AS2 string const
  • src/routes/activitypub.js — served objects (note/replies/notes route) use AP.AP_CONTEXT

Co-Authored-By: Claude <noreply@…>

(No files)

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