Changeset 5045c30 in Klonkt for src/routes/posts.js
- Timestamp:
- 06/26/2026 12:00:18 PM (2 months ago)
- Branches:
- main
- Children:
- 3384e95
- Parents:
- 484adf8
- File:
-
- 1 edited
-
src/routes/posts.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/posts.js
r484adf8 r5045c30 627 627 router.post('/tijdlijn/boost', requireSiteManager, async (req, res) => { 628 628 const site = res.locals.site; 629 if (site) { try { await ActivityPubService.sendInteraction(site, 'boost', (req.body.note || '').toString(), (req.body.author || '').toString()); } catch (e) { /* ignore */ } } 629 const note = (req.body.note || '').toString(); 630 if (site && note) { 631 try { await ActivityPubService.sendInteraction(site, 'boost', note, (req.body.author || '').toString()); } catch (e) { /* ignore */ } 632 ActivityPubService.markBoosted(site.slug, note); // also surface it in the Cirkel (mixed by date) 633 } 630 634 res.redirect('/tijdlijn?success=' + encodeURIComponent('Geboost 🔁')); 631 635 });
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)