Changeset 355364c in Klonkt for scripts


Ignore:
Timestamp:
06/26/2026 09:33:42 AM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
5ceed61
Parents:
d71ed03
Message:

fix(cirkel): migrate ALL circle links, not just status='active'

Old pull-protocol health statuses ('error'/'outdated') are irrelevant now: a
peer that removed /.klonkt/* shows as 'error' but still has a working AP actor.
The active-only filter dropped such links (e.g. sound-fabrics: 5 links -> only 2
migrated). Migrate every non-removed link; bump the run flag to v2 so instances
re-migrate and pick up the previously-skipped ones.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/migrate-circles.mjs

    rd71ed03 r355364c  
    2424    SELECT cl.remote_url AS url, s.id AS sid, s.slug AS slug
    2525    FROM circle_links cl JOIN sites s ON s.id = cl.local_site_id
    26     WHERE cl.status = 'active'
     26    WHERE cl.status != 'removed'
    2727  `).all();
    2828} catch (e) { console.log('no circle_links table — nothing to migrate'); process.exit(0); }
Note: See TracChangeset for help on using the changeset viewer.