Changeset 14f7cb2 in Klonkt for src/routes/activitypub.js
- Timestamp:
- 08/06/2026 09:10:41 AM (5 weeks ago)
- Branches:
- main
- Children:
- 68a4d1b
- Parents:
- 0e27e54
- git-author:
- Robin <roboburr@…> (08/06/2026 09:10:40 AM)
- git-committer:
- Claude (agent) <aiclaude@…> (08/06/2026 09:10:41 AM)
- File:
-
- 1 edited
-
src/routes/activitypub.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/activitypub.js
r0e27e54 r14f7cb2 285 285 const playbackAllowed = embedsAllowed 286 286 && Guardianship.externalPlaybackAllowed(auth.site.external_playback, isWard); 287 const posts = AP.getTimeline(auth.site.slug, 60).map((t) => ({ 287 const rows = AP.getTimeline(auth.site.slug, 60); 288 // Eén query voor de hele pagina (shaer-9e9 fase 2): shaer:liked komt uit de 289 // tussentabel, de bron van waarheid, en niet meer uit de afgeleide kolom op 290 // ap_timeline. Per rij vragen zou hier een N+1 opleveren. 291 const reacties = AP.getReactionsFor(auth.site.slug, rows.map((t) => t.id)); 292 const posts = rows.map((t) => ({ 288 293 id: `${t.id}#create`, 289 294 type: 'Create', … … 333 338 // Whether THIS account already liked/boosted the note, so the app's 334 339 // detail-view buttons show the current state (and can toggle/undo). 335 'shaer:liked': !! t.liked,336 'shaer:boosted': !! t.boosted,340 'shaer:liked': !!(reacties.get(t.id) || {}).liked, 341 'shaer:boosted': !!(reacties.get(t.id) || {}).boosted, 337 342 // An external (non-fediverse) embed, thumbnail-only and never an iframe. 338 343 // Omitted entirely when the gate is closed (see above).
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)