Changeset 4c47eff in Klonkt for src/server.js


Ignore:
Timestamp:
06/26/2026 12:32:50 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
bbce8da
Parents:
78b6d8a
Message:

refactor(cirkel): remove the legacy circle auto-migration (no auto-fediverse)

autoMigrateCircles auto-sent Follows on boot to re-establish legacy circle_links
as AP follows. That violates the rule 'the code never throws anything into the
fediverse automatically' — at scale it would surprise-Follow on behalf of operators
who never asked. Removed the boot call, the function, its export, and the manual
scripts/migrate-circles.mjs (bulk Follows). resolveApActor stays (used by bare-domain
follows). Dead circle_links table is left as harmless dead data; an operator restores
an old cirkel by re-following in /volgend (their own click). We can do this clean
removal now precisely because we're still small-scale.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/server.js

    r78b6d8a r4c47eff  
    5858import ogRoutes from './routes/og.js';
    5959import apRoutes from './routes/activitypub.js';
    60 import { apWants, startDeliveryWorker, autoMigrateCircles, selfHealTimeline } from './services/ActivityPubService.js';
     60import { apWants, startDeliveryWorker, selfHealTimeline } from './services/ActivityPubService.js';
    6161
    6262// SESSION_SECRET: use the env var if set. Otherwise auto-generate a strong one
     
    161161startScheduler(); // release planning: publish scheduled posts when publish_at is reached
    162162startDeliveryWorker(); // retry failed fediverse deliveries with backoff
    163 autoMigrateCircles(); // one-time: convert legacy circle_links -> AP auto-boost follows
    164163selfHealTimeline(); // once per SELFHEAL_VERSION bump: re-sync the fediverse cache (covers/edits) after a drastic update
    165164
Note: See TracChangeset for help on using the changeset viewer.