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.

revert: remove inline platform detection from indexer

Follow existing pattern: schema migrations handle basePath→platform
correction on startup. Avoids duplicating detection logic in two places.

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

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

zzstoatzz 6b3e03ff f08eb952

+1 -15
+1 -15
backend/src/indexer.zig
··· 57 57 } else |_| {} 58 58 } 59 59 60 - // detect platform from base_path (overrides collection-based detection for site.standard.*) 61 - var actual_platform = platform; 62 - if (std.mem.eql(u8, platform, "standardsite") or std.mem.eql(u8, platform, "unknown")) { 63 - if (std.mem.indexOf(u8, base_path, "offprint.app") != null or 64 - std.mem.indexOf(u8, base_path, "offprint.test") != null) 65 - { 66 - actual_platform = "offprint"; 67 - } else if (std.mem.indexOf(u8, base_path, "pckt.blog") != null) { 68 - actual_platform = "pckt"; 69 - } else if (std.mem.indexOf(u8, base_path, "leaflet.pub") != null) { 70 - actual_platform = "leaflet"; 71 - } 72 - } 73 - 74 60 try c.exec( 75 61 "INSERT OR REPLACE INTO documents (uri, did, rkey, title, content, created_at, publication_uri, platform, source_collection, path, base_path, has_publication) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", 76 - &.{ uri, did, rkey, title, content, created_at orelse "", pub_uri, actual_platform, source_collection, path orelse "", base_path, has_pub }, 62 + &.{ uri, did, rkey, title, content, created_at orelse "", pub_uri, platform, source_collection, path orelse "", base_path, has_pub }, 77 63 ); 78 64 79 65 // update FTS index