Changeset 00f669b in Klonkt for src/routes/posts.js


Ignore:
Timestamp:
06/24/2026 03:27:49 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
d0cab9d
Parents:
d988fa0
Message:

feat(fediverse-client): notifications inbox (/meldingen)

Aggregates new followers + replies/likes/boosts on your posts into one feed
(getNotifications). New pages/fedi-notifications view + Beheer link. The old
native notifications.ejs (dead since comments removed) is left untouched.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/routes/posts.js

    rd988fa0 r00f669b  
    8686  'tag', 'type', 'user', 'users', 'artiesten', 'leden', 'favorieten', 'feed.xml', 'atom.xml', 'sitemap.xml',
    8787  'manifest.webmanifest', 'sw.js', 'favicon.ico', 'favicon.svg', 'assets',
    88   'authorize_interaction', 'fediverse', 'tijdlijn',
     88  'authorize_interaction', 'fediverse', 'tijdlijn', 'meldingen',
    8989]);
    9090
     
    606606  if (site) { try { await ActivityPubService.sendInteraction(site, 'boost', (req.body.note || '').toString(), (req.body.author || '').toString()); } catch (e) { /* ignore */ } }
    607607  res.redirect('/tijdlijn?success=' + encodeURIComponent('Geboost 🔁'));
     608});
     609
     610// Notifications inbox (new followers + replies/likes/boosts on your posts).
     611router.get('/meldingen', requireSiteManager, (req, res) => {
     612  const site = res.locals.site;
     613  const items = site ? ActivityPubService.getNotifications(site.slug, 80) : [];
     614  renderPage(req, res, 'pages/fedi-notifications', { pageTitle: 'Meldingen', bodyClass: 'on-special', items });
    608615});
    609616
Note: See TracChangeset for help on using the changeset viewer.