forked from nostr/nostrweb
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
parent
f4f951469f
commit
0dcfa6e0a9
|
@ -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…
Reference in New Issue