Changeset d3a1abd in Klonkt for src/services/ActivityPubService.js
- Timestamp:
- 07/30/2026 09:22:06 AM (6 weeks ago)
- Branches:
- main
- Children:
- a9da2c0
- Parents:
- aa189d1
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
raa189d1 rd3a1abd 400 400 } 401 401 body = body.replace(/<img\b[^>]*>/gi, ''); 402 // Video and audio tags leave the federated content the same way (30-7): 403 // they ride as AS2 attachments (c2s_attachments), and the tag itself 404 // carries a RELATIVE /media src that is dead everywhere but our own web. 405 // Leaving it in showed every remote reader a broken player above the 406 // working one. The web keeps its tags: this strip is federation-only. 407 body = body.replace(/<video\b[^>]*>[\s\S]*?<\/video>/gi, '').replace(/<video\b[^>]*\/?>/gi, ''); 408 body = body.replace(/<audio\b[^>]*>[\s\S]*?<\/audio>/gi, '').replace(/<audio\b[^>]*\/?>/gi, ''); 402 409 // Audio shortcodes: do NOT federate the raw audio file — Klonkt deliberately 403 410 // gates audio (the /audio/stream URL has friction), and shipping it as an AP
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)