Changeset aed0092 in Klonkt for src/routes/activitypub.js
- Timestamp:
- 08/11/2026 06:35:19 PM (4 weeks ago)
- Branches:
- main
- Children:
- 960f015
- Parents:
- cb3001e
- File:
-
- 1 edited
-
src/routes/activitypub.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/activitypub.js
rcb3001e raed0092 1204 1204 // zijn -- anders springt het hartje terug zodra de reader opnieuw opent. 1205 1205 const reacties = AP.getReactionsFor(auth.site.slug, uit.notes.map((n) => n.id)); 1206 // De thread heeft al een ?object= in zijn id, dus geen ?page= erachter: die 1207 // collectie is niet te pagineren zonder de vraag zelf te herhalen. Hij is 1208 // owner-only en wordt door Shaer gelezen, niet door de federatie. 1206 1209 AP.sendAP(res, { 1207 1210 '@context': AP.AP_CONTEXT, … … 1221 1224 const base = baseUrl(req); 1222 1225 const items = AP.getReplyUris(base, req.params.id); 1223 AP.sendAP(res, { 1224 '@context': AP.AP_CONTEXT, 1225 id: `${base}/ap/notes/${req.params.id}/replies`, 1226 type: 'OrderedCollection', 1227 totalItems: items.length, 1228 orderedItems: items, 1229 }); 1226 AP.sendAP(res, AP.pagedCollection(`${base}/ap/notes/${req.params.id}/replies`, items)); 1230 1227 }); 1231 1228
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)