Reposts with a body (commentary) were silently broken in two ways: 1. jf2ToAS2Activity() always emitted a bare Announce pointing at the external URL (e.g. fromjason.xyz). That URL doesn't serve AP JSON, so Mastodon couldn't fetch the object and dropped the activity from followers' timelines — the post only appeared when explicitly searched. 2. jf2ToActivityStreams() (content negotiation / search) hard-coded the Note content to just '🔁 <url>', completely ignoring properties.content. Fix via patch-ap-repost-commentary.mjs (4 targeted replacements): - jf2ToAS2Activity(): skip the Announce early-return when commentary is present and fall through to the existing Create(Note) path instead. Pure reposts (no body) keep the Announce behaviour unchanged. - jf2ToAS2Activity() content block: add a repost branch that formats the Note as '<commentary><br><br>🔁 <url>' (mirrors bookmark/like). - jf2ToActivityStreams(): extract commentary and prepend it to the Note content when present. Patch registered in both postinstall and serve chains. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
7.0 KiB
7.0 KiB