Changeset 1d1fdc9 in Klonkt for src/services/music/index.js
- Timestamp:
- 09/04/2026 12:17:49 PM (4 days ago)
- Branches:
- main
- Children:
- 6d7ea52
- Parents:
- 9946a68
- File:
-
- 1 edited
-
src/services/music/index.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/services/music/index.js
r9946a68 r1d1fdc9 13 13 */ 14 14 15 import db from '../../config/database.js';15 import db, { isoSql } from '../../config/database.js'; 16 16 import { AP_CONTEXT, PUBLIC, actorId, noteId, safeUrl, guessMediaType, buildHashtagList, pagedCollection, isMbid } from '../ap-core.js'; 17 17 import { afleidenUitInsluitingen, ingeslotenPlaylists, SOORTEN } from '../../assets/js/shared/post-music-type.js'; … … 681 681 const rijen = db.prepare(` 682 682 SELECT id, slug, title, excerpt, content, cover_image_url, tags, 683 COALESCE(published_at, created_at)AS uit_wanneer683 ${isoSql('COALESCE(published_at, created_at)')} AS uit_wanneer 684 684 FROM posts 685 685 WHERE site_id = ? AND status = 'published' 686 686 AND content LIKE '%[[playlist:' || ? || ']]%' 687 ORDER BY COALESCE(published_at, created_at)DESC687 ORDER BY ${isoSql('COALESCE(published_at, created_at)')} DESC 688 688 `).all(siteId, playlistId); 689 689 for (const p of rijen) {
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)