fix: preserve content created_at, add listUpdatedAt for sorting by when bookmarked

This commit is contained in:
Gigi
2025-10-22 12:26:01 +02:00
parent 8bb871913b
commit 4f78ee4794
5 changed files with 31 additions and 22 deletions

View File

@@ -31,7 +31,7 @@ export interface Bookmark {
export interface IndividualBookmark {
id: string
content: string
// Timestamp from the bookmark list event (when this was bookmarked)
// Timestamp when the content was created (from the content event itself)
created_at: number
pubkey: string
kind: number
@@ -49,6 +49,9 @@ export interface IndividualBookmark {
setTitle?: string
setDescription?: string
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
}
export interface ActiveAccount {