refactor: remove synthetic added_at field, use created_at from bookmark list event

This commit is contained in:
Gigi
2025-10-22 12:18:43 +02:00
parent 49eb6855ca
commit 8bb871913b
8 changed files with 23 additions and 36 deletions

View File

@@ -31,6 +31,7 @@ export interface Bookmark {
export interface IndividualBookmark {
id: string
content: string
// Timestamp from the bookmark list event (when this was bookmarked)
created_at: number
pubkey: string
kind: number
@@ -40,8 +41,6 @@ export interface IndividualBookmark {
type: 'event' | 'article' | 'web'
isPrivate?: boolean
encryptedContent?: string
// When the item was added to the bookmark list (synthetic, for sorting)
added_at?: number
// The kind of the source list/set that produced this bookmark (e.g., 10003, 30003, 30001, or 39701 for web)
sourceKind?: number
// The 'd' tag value from kind 30003 bookmark sets