- Timestamp:
- 07/04/2026 05:05:30 PM (2 months ago)
- Branches:
- main
- Children:
- b7e382f
- Parents:
- 8b5c076
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
r8b5c076 r006a3be 1637 1637 .filter((a) => a && a.url && (!a.mediaType || /^image\//i.test(a.mediaType))) 1638 1638 .map((a) => safeUrl(a.url)).filter(Boolean); 1639 // A Klonkt hosted-audio post strips its cover from `attachment` (so Mastodon 1640 // shows the player card, not a loose image) and puts it in `image` instead. 1641 // Same fallback as mediaFromNote() so a boosted music post keeps its cover. 1642 if (!images.length && note.image) { 1643 const im = Array.isArray(note.image) ? note.image[0] : note.image; 1644 const iu = safeUrl(typeof im === 'string' ? im : (im && im.url)); 1645 if (iu) images.push(iu); 1646 } 1639 1647 return { 1640 1648 object_uri: safeUrl(note.id) || note.id,
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)