fix: filter out 'Untitled' items from Reads tab

- Exclude Nostr articles without event data (can't fetch title)
- Exclude external URLs without proper titles
- Prevents cluttering Reads with items that have no meaningful title
- Only shows items we can properly identify and display
This commit is contained in:
Gigi
2025-10-16 01:25:31 +02:00
parent 292e8e9bda
commit a064376bd8

View File

@@ -259,6 +259,14 @@ export async function fetchAllReads(
(item.markedAt && item.markedAt > 0)
if (!hasTimestamp) return false
// Filter out items without titles
if (!item.title || item.title === 'Untitled') {
// For Nostr articles, we need the title from the event
if (item.type === 'article' && !item.event) return false
// For external URLs, we need a proper title
if (item.type === 'external' && !item.title) return false
}
// For external URLs, only include if there's reading progress or marked as read
if (item.type === 'external') {
const hasProgress = (item.readingProgress && item.readingProgress > 0) || item.markedAsRead