From 0dcfa6e0a98e006be6c2e27d8c99e56f07e38c40 Mon Sep 17 00:00:00 2001 From: OFF0 Date: Sun, 22 Jan 2023 15:23:05 +0100 Subject: [PATCH] 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 4a6894068157c58582cb6ba050fc748f393aa94f --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 4aac0be..65e8611 100644 --- a/src/main.js +++ b/src/main.js @@ -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]) => {