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: standard.site is a lexicon, not a platform

- remove standardsite from PLATFORM_CONFIG
- only show platform badge for actual platforms (leaflet, pckt, offprint)
- add universal fallback URL via pdsls.dev for all documents

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

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

zzstoatzz e53abcab af4a0dde

+11 -10
+11 -10
site/index.html
··· 434 434 435 435 // build URL based on entity type and platform 436 436 const docUrl = buildDocUrl(doc, entityType, platform); 437 - const platformLabel = PLATFORM_CONFIG[platform]?.label || platform; 438 - const platformBadge = `<span class="platform-badge">${escapeHtml(platformLabel)}</span>`; 437 + // only show platform badge for actual platforms, not for lexicon-only records 438 + const platformConfig = PLATFORM_CONFIG[platform]; 439 + const platformBadge = platformConfig 440 + ? `<span class="platform-badge">${escapeHtml(platformConfig.label)}</span>` 441 + : ''; 439 442 const date = doc.createdAt ? new Date(doc.createdAt).toLocaleDateString() : ''; 440 443 441 444 // platform home URL for meta link ··· 503 506 // offprint is in early beta, URL pattern unknown 504 507 docUrl: null 505 508 }, 506 - standardsite: { 507 - home: 'https://standard.site', 508 - label: 'standard.site', 509 - // standard.site uses basePath from publication 510 - docUrl: null 511 - }, 512 509 }; 513 510 514 511 function buildDocUrl(doc, entityType, platform) { 515 512 if (entityType === 'publication') { 516 513 return doc.basePath ? `https://${doc.basePath}` : null; 517 514 } 518 - // documents: prefer basePath, fallback to platform-specific pattern 515 + // documents: prefer basePath, fallback to platform-specific pattern, then universal fallback 519 516 if (doc.basePath && doc.rkey) { 520 517 return `https://${doc.basePath}/${doc.rkey}`; 521 518 } ··· 523 520 if (config && config.docUrl && doc.did && doc.rkey) { 524 521 return config.docUrl(doc.did, doc.rkey); 525 522 } 526 - return null; // no URL available for this platform 523 + // universal fallback: link to AT-URI viewer 524 + if (doc.uri) { 525 + return `https://pdsls.dev/${doc.uri}`; 526 + } 527 + return null; 527 528 } 528 529 529 530 function getPlatformHome(platform, basePath) {