feat: add more relays and fix logging for better bookmark debugging

- Add more popular relays for better bookmark discovery
- Fix variable scoping in bookmark event logging
- Enhanced debugging to see dTag and tag content structure
This commit is contained in:
Gigi
2025-10-02 20:50:07 +02:00
parent 2e5d0e3725
commit 00638410c0
2 changed files with 9 additions and 3 deletions

View File

@@ -182,6 +182,9 @@ export const fetchBookmarks = async (
let latestContent = ''
let allTags: string[][] = []
for (const evt of bookmarkListEvents) {
const dTag = evt.tags?.find((t: string[]) => t[0] === 'd')?.[1] || 'none'
const firstFewTags = evt.tags?.slice(0, 3).map((t: string[]) => `${t[0]}:${t[1]?.slice(0, 8)}`).join(', ') || 'none'
console.log('📋 Processing bookmark event:', {
id: evt.id?.slice(0, 8),
kind: evt.kind,
@@ -190,8 +193,8 @@ export const fetchBookmarks = async (
tagsCount: evt.tags?.length || 0,
hasHiddenContent: Helpers.hasHiddenContent(evt),
canHaveHiddenTags: Helpers.canHaveHiddenTags(evt.kind),
dTag: evt.tags?.find((t: string[]) => t[0] === 'd')?.[1] || 'none',
firstFewTags: evt.tags?.slice(0, 3).map((t: string[]) => `${t[0]}:${t[1]?.slice(0, 8)}`).join(', ') || 'none'
dTag: dTag,
firstFewTags: firstFewTags
})
newestCreatedAt = Math.max(newestCreatedAt, evt.created_at || 0)