Changeset 14f54a7 in Klonkt for src/routes/posts.js
- Timestamp:
- 07/04/2026 05:31:45 PM (2 months ago)
- Branches:
- main
- Children:
- 6ec0433
- Parents:
- 6dd1a3f
- File:
-
- 1 edited
-
src/routes/posts.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/posts.js
r6dd1a3f r14f54a7 867 867 on = !ActivityPubService.getTimelineReaction(site.slug, note).boosted; 868 868 try { await ActivityPubService.sendInteraction(site, on ? 'boost' : 'unboost', note, (req.body.author || '').toString()); } catch (e) { /* ignore */ } 869 if (on) ActivityPubService.markBoosted(site.slug, note); else ActivityPubService.unmarkBoosted(site.slug, note); 869 if (on) { 870 ActivityPubService.markBoosted(site.slug, note); // instant UI state 871 // Fire-and-forget: re-resolve the note so the cached row is refreshed 872 // (cover/content) — boosting again heals a stale copy from EVERY boost 873 // path, not just the interact page. 874 ActivityPubService.resolveRemoteNote(note) 875 .then((n) => { if (n) ActivityPubService.upsertBoostedNote(site.slug, n); }) 876 .catch(() => { /* best-effort */ }); 877 } else { 878 ActivityPubService.unmarkBoosted(site.slug, note); 879 } 870 880 } 871 881 if (req.get('X-Requested-With') === 'fetch') return res.json({ ok: true, on });
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)