Changeset 8ef8c3e in Klonkt for src/server.js


Ignore:
Timestamp:
06/26/2026 09:20:12 AM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
429d3b0
Parents:
46f3dd6
Message:

feat(cirkel): remove the old Cirkels pull-protocol; Cirkels is now AP-only

Phase 4 of the Cirkels-on-AP rework. Removes the legacy custom-Ed25519 pull
protocol and everything around it: /.klonkt/* (federation.js), CircleService +
CircleFederation, the 15-min sync loop, the /admin/circle UI, the remote_posts
union in /cirkel and the /cirkel/:id local-reading page. Tenancy is retired
(getTenancy always 'solo'); the Solo|Circle mode picker is gone. /cirkel is now
purely the auto-boosted (featured) feed. The circle_links/remote_* tables are
kept as dead data. A scripts/migrate-circles.mjs converts existing circle_links
to AP follows with auto-boost (run per instance).

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/server.js

    r46f3dd6 r8ef8c3e  
    4242import postsRoutes from './routes/posts.js';
    4343import langRoutes from './routes/lang.js';
    44 import federationRoutes from './routes/federation.js';
    45 import { startCircleSyncLoop } from './services/CircleService.js';
    46 import adminCircleRoutes from './routes/admin-circle.js';
    4744import adminUpdatesRoutes from './routes/admin-updates.js';
    4845import adminPatreonRoutes from './routes/admin-patreon.js';
     
    198195// Klonkt is PWA-only; assetlinks.json is no longer served.
    199196
    200 // Circles: periodic background sync of remote instances (no-op unless tenancy='circle').
    201 startCircleSyncLoop();
    202 
    203197// Bundle HTMX: copy from node_modules into our own assets dir so we can serve
    204198// it locally (no third-party CDN). Idempotent — only copies if size differs.
     
    217211  }
    218212})();
    219 
    220 // Circle federation: public, site-agnostic endpoints (/.klonkt/*).
    221 // Before resolveSite/theme — they don't need a site context.
    222 app.use(federationRoutes);
    223213
    224214// ActivityPub: WebFinger + /ap/* (site-agnostic, resolves the site by slug).
     
    304294app.use('/admin/settings', adminSettingsRoutes);
    305295app.use('/admin/seo', adminSeoRoutes);
    306 app.use('/admin/circle', adminCircleRoutes);
    307296app.use('/admin/updates', adminUpdatesRoutes);
    308297app.use('/admin/patreon', adminPatreonRoutes);
Note: See TracChangeset for help on using the changeset viewer.