Changeset dd1028a in Klonkt for src/routes/activitypub.js

Timestamp:
06/24/2026 10:48:18 AM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
065452a
Parents:
5bf63b7
Message:

fix(activitypub): content-negotiation on canonical URLs

An AP request (Accept: application/activity+json) to a profile or post URL now
302-redirects to its /ap/* representation, so the same URL serves HTML to
browsers and AP-JSON to servers. Fixes Mastodon failing to resolve a pasted
profile/post URL (it received text/html). Gated on apWants() — no cost for
normal browser traffic.

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

(No files)

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