Changeset 59f0170 in Klonkt for src/server.js


Ignore:
Timestamp:
06/24/2026 02:26:32 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
dc8e9bd
Parents:
2e9773f
Message:

refactor(comments): remove native comments — social is fediverse-only

Removes routes/comments.js + admin-comments.js (+ mounts), the comment section &
reply UI on posts, comment loading in the post route, the admin moderation page +
links, and the per-site comment-moderation settings. The 'From the fediverse'
section is now the post's comment area. The .comment CSS stays (reused there);
the comments table is left in place (dead) so old-data cascade-deletes still work.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/server.js

    r2e9773f r59f0170  
    3232import adminSitesRoutes from './routes/admin-sites.js';
    3333import adminUsersRoutes from './routes/admin-users.js';
    34 import adminCommentsRoutes from './routes/admin-comments.js';
    3534import adminSettingsRoutes from './routes/admin-settings.js';
    3635import adminSeoRoutes from './routes/admin-seo.js';
    3736import audioRoutes from './routes/audio.js';
    3837import searchRoutes from './routes/search.js';
    39 import commentsRoutes from './routes/comments.js';
    4038import tagsRoutes from './routes/tags.js';
    4139import typesRoutes from './routes/types.js';
     
    305303app.use('/admin/sites', adminSitesRoutes);
    306304app.use('/admin/users', adminUsersRoutes);
    307 app.use('/admin/comments', adminCommentsRoutes);
    308305app.use('/admin/settings', adminSettingsRoutes);
    309306app.use('/admin/seo', adminSeoRoutes);
     
    318315if (audioEnabled()) app.use('/audio', audioRoutes);
    319316app.use('/search', searchRoutes);
    320 app.use('/comments', commentsRoutes);
    321317app.use('/tag', tagsRoutes);
    322318app.use('/type', typesRoutes);
Note: See TracChangeset for help on using the changeset viewer.