mirror of
https://github.com/dergigi/boris.git
synced 2025-12-17 22:54:30 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user