Changeset f7ed139 in Klonkt
- Timestamp:
- 06/30/2026 06:55:53 PM (2 months ago)
- Branches:
- main
- Children:
- 0fc5db5
- Parents:
- 2ab99c0
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
r2ab99c0 rf7ed139 367 367 if (post.nsfw) note.summary = post.content_warning || 'Gevoelige inhoud'; 368 368 if (attachment.length) note.attachment = attachment; 369 // Playable-audio posts suppress the cover attachment (player card). Still expose 370 // the cover via AS2 `image` so card/grid consumers (the Klonkt Cirkel) can show 371 // it — Mastodon ignores a Note's `image`, so the player card is unaffected. 372 if (post.cover_image_url && playable) { 369 // When the cover attachment is suppressed (hosted audio OR an external embed/link-only track → 370 // so Mastodon shows the player/link card, not media), still expose the cover via AS2 `image` so 371 // card/grid consumers (the Klonkt Cirkel/News feed) can show it. Mastodon ignores a Note's 372 // `image`, so its card is unaffected — but a Klonkt receiver reads it (handleInbox o.image). 373 if (post.cover_image_url && noImages) { 373 374 const cov = abs(post.cover_image_url); 374 375 if (cov) note.image = { type: 'Image', mediaType: mediaType(cov), url: cov };
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)