debug: remove console logging for kind:1 hydration

- Removed 📝, 💧, 🎨 and 📊 debug logs
- These were added for troubleshooting but are no longer needed
- Kind:1 content hydration and rendering is working correctly
This commit is contained in:
Gigi
2025-10-21 23:58:16 +02:00
parent e08ce0e477
commit 51e48804fe
4 changed files with 3 additions and 49 deletions

View File

@@ -146,16 +146,6 @@ class BookmarkController {
idToEvent.set(event.id, event)
// Debug logging for kind:1 events
if (event.kind === 1) {
console.log('📝 Fetched kind:1 event:', {
id: event.id.slice(0, 8),
content: event.content?.slice(0, 50),
contentLength: event.content?.length,
created_at: event.created_at
})
}
// Also index by coordinate for addressable events
if (event.kind && event.kind >= 30000 && event.kind < 40000) {
const dTag = event.tags?.find((t: string[]) => t[0] === 'd')?.[1] || ''

View File

@@ -184,15 +184,6 @@ export function hydrateItems(
}
}
// Debug logging for kind:1 events
if (ev.kind === 1 && content) {
console.log('💧 Hydrated kind:1 with content:', {
id: item.id.slice(0, 8),
content: content.slice(0, 50),
contentLength: content.length
})
}
// Ensure all events with content get parsed content for proper rendering
const parsedContent = content ? (getParsedContent(content) as ParsedContent) : undefined