Changeset 84903a1 in Klonkt for src/views/pages/newspaper.ejs


Ignore:
Timestamp:
06/26/2026 04:02:03 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
d22b55c
Parents:
0fa59c3
Message:

feat(newspaper): embed followed Klonkt sites' audio player inline (option A)

A federated Klonkt audio post (content has the music note + a single-segment post URL)
now embeds the remote site's /embed?post=<slug> player in the feed. Only the followed
site's origin is added to THIS response's CSP frame-src (you follow them = trust); the
global policy stays locked. Mastodon multi-segment URLs are skipped.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/newspaper.ejs

    r0fa59c3 r84903a1  
    106106  .tl-embed-spotify { aspect-ratio: auto; height: 152px; }
    107107  .tl-embed-sc { aspect-ratio: auto; height: 166px; }
     108  .tl-embed-klonkt { aspect-ratio: auto; height: 180px; background: var(--paper, #fff); }
    108109
    109110  .tl-orig { display: inline-block; margin: .7rem 0 0; font-size: .82rem; color: var(--accent, #06c); text-decoration: none; }
Note: See TracChangeset for help on using the changeset viewer.