feed: show publish note within the same second

a fast relay might return a newly published note within the same
second, but nostrweb only shows notes that are older than now.

was introduced in 4a68940681
pull/68/head
OFF0 2 years ago
parent f4f951469f
commit 0dcfa6e0a9
Signed by: offbyn
GPG Key ID: 94A2F643C51F37FA

@ -267,7 +267,7 @@ const renderFeed = bounce(() => {
const now = Math.floor(Date.now() * 0.001);
const sortedFeeds = textNoteList
// dont render notes from the future
.filter(note => note.created_at < now)
.filter(note => note.created_at <= now)
// if difficulty filter is configured dont render notes with too little pow
.filter(note => {
return !fitlerDifficulty || note.tags.some(([tag, , commitment]) => {

Loading…
Cancel
Save