Changeset 183875b in Klonkt for src/routes/posts.js
- Timestamp:
- 06/20/2026 05:23:08 AM (3 months ago)
- Branches:
- main
- Children:
- d727e92
- Parents:
- 459acd9
- File:
-
- 1 edited
-
src/routes/posts.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/posts.js
r459acd9 r183875b 529 529 const placeholders = trackIds.map(() => '?').join(','); 530 530 const rows = db.prepare(` 531 SELECT t.id, t.title, t.artist, t.cover_url, t.credit, t.license, m.filename 531 SELECT t.id, t.title, t.artist, t.cover_url, t.credit, t.license, 532 t.link_spotify, t.link_youtube, t.link_soundcloud, m.filename 532 533 FROM audio_tracks t LEFT JOIN media m ON m.id = t.media_id 533 534 WHERE t.site_id = ? AND t.id IN (${placeholders}) … … 544 545 credit: r.credit || '', 545 546 license: r.license || '', 547 link_spotify: r.link_spotify || '', 548 link_youtube: r.link_youtube || '', 549 link_soundcloud: r.link_soundcloud || '', 546 550 url: audioUrl(r.filename), 547 551 }; … … 554 558 const placeholders = albumNames.map(() => '?').join(','); 555 559 const albumRows = db.prepare(` 556 SELECT t.id, t.title, t.artist, t.album, t.cover_url, t.position, m.filename 560 SELECT t.id, t.title, t.artist, t.album, t.cover_url, t.position, 561 t.link_spotify, t.link_youtube, t.link_soundcloud, m.filename 557 562 FROM audio_tracks t LEFT JOIN media m ON m.id = t.media_id 558 563 WHERE t.site_id = ? AND t.album IN (${placeholders}) … … 569 574 artist: r.artist || '', 570 575 cover: r.cover_url || '', 576 link_spotify: r.link_spotify || '', 577 link_youtube: r.link_youtube || '', 578 link_soundcloud: r.link_soundcloud || '', 571 579 }); 572 580 }
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)