Changeset f278df9 in Klonkt for src/routes
- Timestamp:
- 06/26/2026 07:47:20 AM (2 months ago)
- Branches:
- main
- Children:
- ce0bedf
- Parents:
- 283f618
- File:
-
- 1 edited
-
src/routes/posts.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/posts.js
r283f618 rf278df9 578 578 if (site && handle.trim()) { 579 579 try { 580 const r = await ActivityPubService.followActor(site, handle );580 const r = await ActivityPubService.followActor(site, handle, !!req.body.auto_boost); 581 581 if (r && r.error) q = 'error=' + encodeURIComponent(r.error === 'not_found' ? 'Account niet gevonden' : (r.error === 'unreachable' ? 'Server onbereikbaar' : 'Volgen mislukt')); 582 582 else q = 'success=' + encodeURIComponent('Je volgt nu ' + ((r && r.name) || handle)); … … 591 591 if (site && actorUri) { try { await ActivityPubService.unfollowActor(site, actorUri); } catch (e) { /* ignore */ } } 592 592 res.redirect('/tijdlijn?success=' + encodeURIComponent('Ontvolgd')); 593 }); 594 595 // Toggle auto-boost ("feature this artist") on an account you already follow. 596 router.post('/tijdlijn/autoboost', requireSiteManager, (req, res) => { 597 const site = res.locals.site; 598 const actorUri = (req.body.actor_uri || '').toString(); 599 if (site && actorUri) ActivityPubService.setAutoBoost(site.slug, actorUri, !!req.body.auto_boost); 600 res.redirect('/tijdlijn?success=' + encodeURIComponent(req.body.auto_boost ? 'Auto-boost aan 🔁' : 'Auto-boost uit')); 593 601 }); 594 602
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)