mirror of
https://github.com/dergigi/boris.git
synced 2026-01-27 02:34:33 +01:00
debug: add detailed logging for highlight fetching
- Log article details (event ID, author, kind, d-tag, coordinate) - Log filter being used for highlight queries - Log sample highlight tags when found - This will help debug why highlights aren't showing
This commit is contained in:
@@ -73,6 +73,14 @@ const Bookmarks: React.FC<BookmarksProps> = ({ relayPool, onLogout }) => {
|
||||
const dTag = article.event.tags.find(t => t[0] === 'd')?.[1] || ''
|
||||
const articleCoordinate = `${article.event.kind}:${article.author}:${dTag}`
|
||||
|
||||
console.log('📰 Article details:')
|
||||
console.log(' - Event ID:', article.event.id)
|
||||
console.log(' - Author:', article.author)
|
||||
console.log(' - Kind:', article.event.kind)
|
||||
console.log(' - D-tag:', dTag)
|
||||
console.log(' - Coordinate:', articleCoordinate)
|
||||
console.log(' - Title:', article.title)
|
||||
|
||||
try {
|
||||
setHighlightsLoading(true)
|
||||
const fetchedHighlights = await fetchHighlightsForArticle(relayPool, articleCoordinate)
|
||||
|
||||
Reference in New Issue
Block a user