@ -328,7 +328,12 @@ function renderFeed() {
const sortedFeeds = textNoteList
const sortedFeeds = textNoteList
// dont render notes from the future
// dont render notes from the future
. filter ( note => note . created _at < now )
. filter ( note => note . created _at < now )
. filter ( note => ! fitlerDifficulty || note . tags . some ( ( [ tag , , commitment ] ) => tag === 'nonce' && commitment >= fitlerDifficulty ) )
// if difficulty filter is configured dont render notes with too little pow
. filter ( note => {
return ! fitlerDifficulty || note . tags . some ( ( [ tag , , commitment ] ) => {
return tag === 'nonce' && commitment >= fitlerDifficulty && zeroLeadingBitsCount ( note . id ) >= fitlerDifficulty ;
} ) ;
} )
. sort ( sortByCreatedAt ) . reverse ( ) ;
. sort ( sortByCreatedAt ) . reverse ( ) ;
sortedFeeds . forEach ( ( evt , i ) => {
sortedFeeds . forEach ( ( evt , i ) => {
if ( feedDomMap [ evt . id ] ) {
if ( feedDomMap [ evt . id ] ) {