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.