Changeset 80797d7 in Klonkt
- Timestamp:
- 06/30/2026 01:23:32 AM (2 months ago)
- Branches:
- main
- Children:
- f2eacca
- Parents:
- e954722
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
re954722 r80797d7 290 290 if (cov) note.image = { type: 'Image', mediaType: mediaType(cov), url: cov }; 291 291 } 292 // Experiment (mirrors PeerTube / schema.org `embedUrl`): point at the GATED player page 293 // (/embed) so a client that honours embedUrl can show an inline player WITHOUT ever 294 // getting the audio file — the anti-steal posture is untouched. `embedUrl` is a real 295 // standard field name (not a Klonkt invention); if Mastodon's apps honour it on a Note we 296 // make it JSON-LD-clean with a context term, otherwise it degrades to the player card. 297 if (playable) note.embedUrl = `${base}/embed?post=${encodeURIComponent(post.slug)}`; 292 298 return note; 293 299 }
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)