Changeset 834bcc3 in Klonkt for src/routes/circle.js
- Timestamp:
- 06/23/2026 06:14:27 PM (3 months ago)
- Branches:
- main
- Children:
- d774679
- Parents:
- bb42dfb
- File:
-
- 1 edited
-
src/routes/circle.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/circle.js
rbb42dfb r834bcc3 1 1 /** 2 * Cir kel-feed + lokale lees-pagina.3 * GET /cirkel -> over zicht (zelfde timeline/grid-view als de home)4 * GET /cirkel/:id -> losse remote-post in eigen chrome (blijf op jesite)5 * Alleen actief als tenancy === 'circle' (andersnext() -> postsRoutes/404).6 * Zie docs/cirkels-v1-spec.md §5c.2 * Circle feed + local reading page. 3 * GET /cirkel -> overview (same timeline/grid view as the home) 4 * GET /cirkel/:id -> individual remote post in own chrome (stay on your site) 5 * Only active when tenancy === 'circle' (otherwise next() -> postsRoutes/404). 6 * See docs/cirkels-v1-spec.md §5c. 7 7 */ 8 8 … … 25 25 } 26 26 27 // ── Over zicht────────────────────────────────────────────────27 // ── Overview ───────────────────────────────────────────────── 28 28 router.get('/cirkel', (req, res, next) => { 29 29 if (getTenancy() !== 'circle') return next(); … … 42 42 return { 43 43 id: r.id, 44 // Lo kale lees-pagina -> de kaart blijft op de eigen site (post-card linkt45 // lo kaal + htmx, GEENexternal_url).44 // Local reading page -> the card stays on the own site (post-card links 45 // locally + htmx, NO external_url). 46 46 slug: 'cirkel/' + encodeURIComponent(r.id), 47 47 title: r.title || '(zonder titel)', … … 58 58 }); 59 59 60 // Sites in de cirkel — alleen actieve links (outdated/error vallen weg, net als61 // hun posts). Voor de grafische header metavatars.60 // Sites in the circle — active links only (outdated/error ones are excluded, along 61 // with their posts). Used for the graphic header with avatars. 62 62 const sites = db.prepare(` 63 63 SELECT a.name, a.url, a.avatar … … 76 76 }); 77 77 78 // ── Losse remote-post (lokaal lezen) ─────────────────────────78 // ── Individual remote post (local reading) ──────────────────── 79 79 router.get('/cirkel/:id', (req, res, next) => { 80 80 if (getTenancy() !== 'circle') return next();
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)