Changeset 79d1281 in Klonkt


Ignore:
Timestamp:
06/26/2026 02:28:50 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
fdd0d61
Parents:
c69267f
Message:

fix(fedi): /notifications showed old (tab-less) view — route collision after rename

The /meldingen -> /notifications rename collided with the pre-existing (dead) user-
notifications route mounted at /notifications, which won and rendered the old tab-less
view. Removed that dead route mount + import, so the fediverse /notifications route (in
postsRoutes, with the tab bar) handles it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/server.js

    rc69267f r79d1281  
    2626import authRoutes from './routes/auth.js';
    2727import accountRoutes from './routes/account.js';
    28 import notificationsRoutes from './routes/notifications.js';
    2928import adminRoutes from './routes/admin.js';
    3029import adminAudioRoutes from './routes/admin-audio.js';
     
    286285app.use('/auth', authRoutes);
    287286app.use('/account', accountRoutes);
    288 app.use('/notifications', notificationsRoutes);
     287// NB: /notifications is the fediverse notifications page (in postsRoutes). The old
     288// user-notifications route was removed — it collided with the fedi route after the
     289// /meldingen -> /notifications rename, and the user-notifications system is dead.
    289290if (audioEnabled()) {
    290291  app.use('/admin/audio', adminAudioRoutes);
Note: See TracChangeset for help on using the changeset viewer.