search for standard sites pub-search.waow.tech
search zig blog atproto
11
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: backfill platform from source_collection

Existing records indexed before the platform detection fix have
platform='unknown'. This migration updates them based on their
source_collection field.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

zzstoatzz 1176b0e3 0fae430a

+5
+5
backend/src/db/schema.zig
··· 139 139 // e.g., pub.leaflet.document/abc and site.standard.document/abc are the same content 140 140 client.exec("CREATE UNIQUE INDEX IF NOT EXISTS idx_documents_did_rkey ON documents(did, rkey)", &.{}) catch {}; 141 141 client.exec("CREATE UNIQUE INDEX IF NOT EXISTS idx_publications_did_rkey ON publications(did, rkey)", &.{}) catch {}; 142 + 143 + // backfill platform from source_collection for records indexed before platform detection fix 144 + client.exec("UPDATE documents SET platform = 'leaflet' WHERE platform = 'unknown' AND source_collection LIKE 'pub.leaflet.%'", &.{}) catch {}; 145 + client.exec("UPDATE documents SET platform = 'pckt' WHERE platform = 'unknown' AND source_collection LIKE 'blog.pckt.%'", &.{}) catch {}; 146 + client.exec("UPDATE documents SET platform = 'standardsite' WHERE platform = 'unknown' AND source_collection LIKE 'site.standard.%'", &.{}) catch {}; 142 147 }