Changeset 457e87b in Klonkt
- Timestamp:
- 08/08/2026 12:34:29 AM (5 weeks ago)
- Branches:
- main
- Children:
- bfe4a55
- Parents:
- 03583f6
- File:
-
- 1 edited
-
src/routes/activitypub.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/activitypub.js
r03583f6 r457e87b 723 723 const uit = await AP.getThread(auth.site.slug, objectUri, { isWard }); 724 724 if (!uit.found) return res.status(404).json({ error: 'note not reachable' }); 725 // Liked/boosted per antwoord, BUITEN de cache om: de genormaliseerde notes 726 // mogen twee minuten oud zijn, maar of JIJ iets geliked hebt hoort van nu te 727 // zijn -- anders springt het hartje terug zodra de reader opnieuw opent. 728 const reacties = AP.getReactionsFor(auth.site.slug, uit.notes.map((n) => n.id)); 725 729 AP.sendAP(res, { 726 730 '@context': AP.AP_CONTEXT, … … 728 732 type: 'OrderedCollection', 729 733 totalItems: uit.notes.length, 730 orderedItems: uit.notes, 734 orderedItems: uit.notes.map((n) => ({ 735 ...n, 736 'shaer:liked': !!(reacties.get(n.id) || {}).liked, 737 'shaer:boosted': !!(reacties.get(n.id) || {}).boosted, 738 })), 731 739 'shaer:hidden': uit.hidden || undefined, 732 740 }, 'private, no-store');
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)