Changeset c9c6a2d in Klonkt for src/middleware


Ignore:
Timestamp:
06/21/2026 06:38:24 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
9a34d31
Parents:
d41f4be
Message:

feat(meldingen): notifications — reply on comment, comment on post, like on post

For every logged-in user (Google visitors/fans and admin). Bell icon in the
header with unread counter + notifications page /notifications (via user menu
desktop + profile sheet mobile; badge also on the mobile Profile tab). Opening =
read. Triggers in comments (reply→comment author, top-level→post author) and
like (→post author); notify() skips notifying yourself. Table notifications
+ NotificationService. NL/EN/DE.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/middleware/render.js

    rd41f4be rc9c6a2d  
    1919import { getSetting } from '../services/SettingsService.js';
    2020import { isPremium as isPremiumInstance, premiumEnabled, premiumUnlocked } from '../services/PatreonService.js';
     21import { unreadCount as notifUnreadCount } from '../services/NotificationService.js';
    2122import { PLATFORMS as PLATFORMS_CATALOG } from '../services/PlatformIcons.js';
    2223import { t as i18nT, resolveLang, SUPPORTED as LANGS, LANG_NAMES } from '../services/i18n.js';
     
    9495    langs: LANGS.map((c) => ({ code: c, name: LANG_NAMES[c], active: c === _lang })),
    9596    timezone: getSetting('timezone') || '',
     97    notifUnread: _u ? notifUnreadCount(_u.id) : 0,
    9698    userOwnsSite,
    9799    canSeeBeheer,
Note: See TracChangeset for help on using the changeset viewer.