Changeset 39a9d21 in Klonkt for src/routes/activitypub.js
- Timestamp:
- 08/08/2026 04:50:48 AM (5 weeks ago)
- Branches:
- main
- Children:
- fb22f78
- Parents:
- bdcb3a3
- git-author:
- Robin <roboburr@…> (08/08/2026 04:47:48 AM)
- git-committer:
- Robin <roboburr@…> (08/08/2026 04:50:48 AM)
- File:
-
- 1 edited
-
src/routes/activitypub.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/activitypub.js
rbdcb3a3 r39a9d21 676 676 }); 677 677 678 // De tracks van deze site: de kanonieke plek voor onze muziek (shaer-0nh, 679 // stap 3). Een playlist is een keuze hieruit; deze collectie is alles wat de 680 // artiest heeft opengezet, ook wat in geen enkele playlist staat. 681 router.get('/ap/users/:slug/tracks', (req, res) => { 682 const site = publicSite(req.params.slug); 683 if (!site) return res.status(404).end(); 684 AP.sendAP(res, AP.buildTrackCollection(baseUrl(req), site, AP.siteOpenTracks(site.id))); 685 }); 686 687 // Eén track, los op te halen. Een gesloten track is AFWEZIG, niet leeg: 404, 688 // dezelfde regel als in de collectie, zodat het bestaan van een gated nummer 689 // niet uit een ander antwoord af te leiden is. 690 router.get('/ap/users/:slug/tracks/:id', (req, res) => { 691 const site = publicSite(req.params.slug); 692 if (!site) return res.status(404).end(); 693 const row = AP.openTrack(site.id, req.params.id); 694 if (!row) return res.status(404).end(); 695 AP.sendAP(res, AP.buildTrackAudio(baseUrl(req), site, row, { standalone: true })); 696 }); 697 678 698 router.get('/ap/users/:slug/playlists/:id', (req, res) => { 679 699 const site = publicSite(req.params.slug);
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)