mirror of
https://github.com/dergigi/boris.git
synced 2026-01-17 22:04:32 +01:00
refactor(bookmarks): never default timestamps to now; allow nulls and sort nulls last; render empty when missing
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user