A simple tool which lets you scrape twitter accounts and crosspost them to bluesky accounts! Comes with a CLI and a webapp for managing profiles! Works with images/videos/link embeds/threads.

fix: repair broken database migration data

jack e8a8817f 04283f0f

+11
+5
src/db.ts
··· 155 155 stmt.run(username.toLowerCase()); 156 156 }, 157 157 158 + repairUnknownIdentifiers(twitterUsername: string, bskyIdentifier: string) { 159 + const stmt = db.prepare('UPDATE processed_tweets SET bsky_identifier = ? WHERE bsky_identifier = "unknown" AND twitter_username = ?'); 160 + stmt.run(bskyIdentifier.toLowerCase(), twitterUsername.toLowerCase()); 161 + }, 162 + 158 163 clearAll() { 159 164 db.prepare('DELETE FROM processed_tweets').run(); 160 165 }
+6
src/index.ts
··· 160 160 console.error(`❌ Failed to migrate ${file}:`, err); 161 161 } 162 162 } 163 + 164 + // REPAIR STEP: Fix any 'unknown' records in SQLite that came from the broken schema migration 165 + for (const mapping of config.mappings) { 166 + dbService.repairUnknownIdentifiers(mapping.twitterUsername, mapping.bskyIdentifier); 167 + } 168 + 163 169 console.log('✅ Migration complete.'); 164 170 } 165 171