Changeset d727e92 in Klonkt for src/routes/posts.js
- Timestamp:
- 06/20/2026 05:37:42 AM (3 months ago)
- Branches:
- main
- Children:
- a66f691
- Parents:
- 183875b
- File:
-
- 1 edited
-
src/routes/posts.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/posts.js
r183875b rd727e92 537 537 html = AudioEmbedService.embedTrackShortcodes(html, (id) => { 538 538 const r = byId.get(id); 539 if (!r || !r.filename) return null;539 if (!r) return null; 540 540 return { 541 541 id: r.id, … … 548 548 link_youtube: r.link_youtube || '', 549 549 link_soundcloud: r.link_soundcloud || '', 550 url: audioUrl(r.filename),550 url: r.filename ? audioUrl(r.filename) : '', // '' = link-only track 551 551 }; 552 552 }); … … 566 566 const byAlbum = new Map(); 567 567 for (const r of albumRows) { 568 if (!r.filename) continue;568 // Link-only tracks (geen bestand) blijven in het album-overzicht (url ''). 569 569 if (!byAlbum.has(r.album)) byAlbum.set(r.album, []); 570 570 byAlbum.get(r.album).push({ 571 571 id: r.id, 572 url: audioUrl(r.filename),572 url: r.filename ? audioUrl(r.filename) : '', 573 573 title: r.title || 'Untitled', 574 574 artist: r.artist || '',
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)