A tool for tailing a labelers' firehose, rehydrating, and storing records for future analysis of moderation decisions.
3
fork

Configure Feed

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

debug: add detailed logging for avatar/banner ref extraction

Add fallback to check if ref is CID string directly and log ref structure to diagnose why CIDs aren't being extracted despite being present in response.

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

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

+9
+9
src/hydration/profiles.service.ts
··· 84 84 if (profileResponse.success && profileResponse.data.value) { 85 85 const record = profileResponse.data.value as any; 86 86 logger.debug({ did, record }, "Profile record structure"); 87 + 88 + if (record.avatar) { 89 + logger.debug({ did, avatarRef: record.avatar.ref, avatarRefKeys: Object.keys(record.avatar.ref || {}) }, "Avatar ref inspection"); 90 + } 91 + 87 92 displayName = record.displayName; 88 93 description = record.description; 89 94 90 95 if (record.avatar?.ref?.$link) { 91 96 avatarCid = record.avatar.ref.$link; 97 + } else if (record.avatar?.ref) { 98 + avatarCid = record.avatar.ref; 92 99 } else { 93 100 avatarCid = ""; 94 101 } 95 102 96 103 if (record.banner?.ref?.$link) { 97 104 bannerCid = record.banner.ref.$link; 105 + } else if (record.banner?.ref) { 106 + bannerCid = record.banner.ref; 98 107 } else { 99 108 bannerCid = ""; 100 109 }