Changeset 46f3dd6 in Klonkt for src/routes
- Timestamp:
- 06/26/2026 09:05:28 AM (2 months ago)
- Branches:
- main
- Children:
- 8ef8c3e
- Parents:
- 2c22bb5
- File:
-
- 1 edited
-
src/routes/posts.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/posts.js
r2c22bb5 r46f3dd6 563 563 router.get('/tijdlijn', requireSiteManager, (req, res) => { 564 564 const site = res.locals.site; 565 const following = site ? ActivityPubService.listFollowing(site.slug) : [];566 565 const timeline = site ? ActivityPubService.getTimeline(site.slug, 60) : []; 567 566 renderPage(req, res, 'pages/timeline', { 568 567 pageTitle: 'Tijdlijn', bodyClass: 'on-special', 569 following, timeline, 568 timeline, 569 success: req.query.success || null, error: req.query.error || null, 570 }); 571 }); 572 573 // Volgend — manage the accounts you follow (+ per-account auto-boost toggles). 574 router.get('/volgend', requireSiteManager, (req, res) => { 575 const site = res.locals.site; 576 const following = site ? ActivityPubService.listFollowing(site.slug) : []; 577 renderPage(req, res, 'pages/volgend', { 578 pageTitle: 'Volgend', bodyClass: 'on-special', 579 following, 570 580 success: req.query.success || null, error: req.query.error || null, 571 581 }); … … 583 593 } catch (e) { q = 'error=' + encodeURIComponent('Volgen mislukt'); } 584 594 } 585 res.redirect('/ tijdlijn?' + q);595 res.redirect('/volgend?' + q); 586 596 }); 587 597 … … 590 600 const actorUri = (req.body.actor_uri || '').toString(); 591 601 if (site && actorUri) { try { await ActivityPubService.unfollowActor(site, actorUri); } catch (e) { /* ignore */ } } 592 res.redirect('/ tijdlijn?success=' + encodeURIComponent('Ontvolgd'));602 res.redirect('/volgend?success=' + encodeURIComponent('Ontvolgd')); 593 603 }); 594 604 … … 598 608 const actorUri = (req.body.actor_uri || '').toString(); 599 609 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'));610 res.redirect('/volgend?success=' + encodeURIComponent(req.body.auto_boost ? 'Auto-boost aan 🔁' : 'Auto-boost uit')); 601 611 }); 602 612
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)