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

@@ -32,7 +32,7 @@ export interface IndividualBookmark {
id: string
content: string
// Timestamp when the content was created (from the content event itself)
created_at: number
created_at: number | null
pubkey: string
kind: number
tags: string[][]
@@ -51,7 +51,7 @@ export interface IndividualBookmark {
setImage?: string
// Timestamp of the bookmark list event (best proxy for "when bookmarked")
// Note: This is imperfect - it's when the list was last updated, not necessarily when this item was added
listUpdatedAt?: number
listUpdatedAt?: number | null
}
export interface ActiveAccount {