refactor(bookmarks): never default timestamps to now; allow nulls and sort nulls last; render empty when missing

This commit is contained in:
Gigi
2025-10-22 13:04:24 +02:00
parent 538cbd2296
commit 2e955e9bed
12 changed files with 36 additions and 34 deletions

View File

@@ -136,7 +136,7 @@ export async function collectBookmarksFromEvents(
publicItemsAll.push({
id: evt.id,
content: evt.content || '',
created_at: evt.created_at || Math.floor(Date.now() / 1000),
created_at: evt.created_at ?? null,
pubkey: evt.pubkey,
kind: evt.kind,
tags: evt.tags || [],
@@ -148,7 +148,7 @@ export async function collectBookmarksFromEvents(
setTitle,
setDescription,
setImage,
listUpdatedAt: evt.created_at || Math.floor(Date.now() / 1000)
listUpdatedAt: evt.created_at ?? null
})
continue
}