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