mirror of
https://github.com/dergigi/boris.git
synced 2026-01-18 22:34:34 +01:00
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:
@@ -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] || ''
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user